QMoveEvent Class

QMoveEvent 클래스에는 이동 이벤트에 대한 이벤트 매개 변수가 포함되어 있습니다. 더 보기...

Header: #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.