QGraphicsSceneMoveEvent Class
QGraphicsSceneMoveEvent 클래스는 그래픽 뷰 프레임워크에서 위젯 이동과 관련된 이벤트를 제공합니다. 더 보기...
| 헤더: | #include <QGraphicsSceneMoveEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| 상속: | QGraphicsSceneEvent |
공개 함수
| QGraphicsSceneMoveEvent() | |
| virtual | ~QGraphicsSceneMoveEvent() |
| QPointF | newPos() const |
| QPointF | oldPos() const |
상세 설명
QGraphicsWidget 는 자체의 로컬 위치가 변경되는 즉시 자신에게 QGraphicsSceneMoveEvent를 전송합니다. 이 전송은 QGraphicsItem::itemChange()의 일부로 구현됩니다.
QMoveEvent 와 유사하지만, 위치 속성인 oldPos()와 newPos()은 QPoint 대신 QPointF 를 사용합니다.
QGraphicsItem::setPos(), QGraphicsItem::ItemPositionChange 및 QGraphicsItem::ItemPositionHasChanged도 참조하십시오 .
멤버 함수 문서
QGraphicsSceneMoveEvent::QGraphicsSceneMoveEvent()
QGraphicsSceneMoveEvent 객체를 생성합니다.
[virtual noexcept] QGraphicsSceneMoveEvent::~QGraphicsSceneMoveEvent()
QGraphicsSceneMoveEvent 를 삭제합니다.
QPointF QGraphicsSceneMoveEvent::newPos() const
새로운 위치(즉, 현재 위치)를 반환합니다.
oldPos() 및 QGraphicsItem::setPos()도 참조하십시오 .
QPointF QGraphicsSceneMoveEvent::oldPos() const
이전 위치(즉, 위젯이 이동되기 직전의 위치)를 반환합니다.
newPos() 및 QGraphicsItem::setPos()도 참조하십시오 .
© 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.