QMoveEvent Class

QMoveEventクラスには、移動イベントのイベント・パラメータが含まれています。詳細...

ヘッダ #include <QMoveEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
継承: QEvent

パブリック関数

QMoveEvent(const QPoint &pos, const QPoint &oldPos)
const QPoint &oldPos() const
const QPoint &pos() const

詳細説明

移動イベントは、親に対して新しい位置に移動したウィジェットに送られます。

イベント・ハンドラQWidget::moveEvent() は、移動イベントを受け取ります。

QWidget::move() およびQWidget::setGeometry()も参照してください

メンバ関数ドキュメント

QMoveEvent::QMoveEvent(const QPoint &pos, const QPoint &oldPos)

新旧のウィジェットの位置、それぞれposoldPos を使って移動イベントを構築する。

const QPoint &QMoveEvent::oldPos() const

ウィジェットの古い位置を返します。

const QPoint &QMoveEvent::pos() const

ウィジェットの新しい位置を返します。これは、トップレベルウィジェットのウィンドウフレームを除きます。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.