QMoveEvent Class
QMoveEvent クラスには、移動イベントに関するイベントパラメータが含まれています。詳細...
| ヘッダー: | #include <QMoveEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 継承元: | QEvent |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QMoveEventは、イベントクラスの一部です。
パブリック関数
| QMoveEvent(const QPoint &pos, const QPoint &oldPos) | |
| const QPoint & | oldPos() const |
| const QPoint & | pos() const |
プロテクトされた関数
| QMoveEvent(QMoveEvent &&) | |
| QMoveEvent & | operator=(QMoveEvent &&) |
| QMoveEvent & | operator=(const QMoveEvent &other) |
QWidget::move() およびQWidget::setGeometry()も参照してください 。
メンバ関数のドキュメント
QMoveEvent::QMoveEvent(const QPoint &pos, const QPoint &oldPos)
新しいウィジェットの位置と古いウィジェットの位置(それぞれpos およびoldPos )を用いて、移動イベントを作成します。
[protected delete] QMoveEvent::QMoveEvent(QMoveEvent &&)
QMoveEvent のインスタンスをmove-constructで生成します。この関数は削除されています。
const QPoint &QMoveEvent::oldPos() const
ウィジェットの以前の位置を返します。
const QPoint &QMoveEvent::pos() const
ウィジェットの新しい位置を返します。トップレベルウィジェットの場合、ウィンドウの枠はこれに含まれません。
[protected delete] QMoveEvent &QMoveEvent::operator=(QMoveEvent &&)
other をこのQMoveEvent インスタンスに割り当てます。この関数は削除されます。
[noexcept protected default] QMoveEvent &QMoveEvent::operator=(const QMoveEvent &other)
other をこのQMoveEvent インスタンスにコピーして割り当てます。
© 2026 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.