이 페이지에서

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

보호된 함수

QMoveEvent(QMoveEvent &&)
QMoveEvent &operator=(QMoveEvent &&)
QMoveEvent &operator=(const QMoveEvent &other)

상세 설명

이동 이벤트는 부모에 대해 새로운 위치로 이동된 위젯으로 전송됩니다.

QWidget::moveEvent() 이벤트 핸들러는 이동 이벤트를 수신합니다.

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.