QGraphicsSceneMoveEvent Class
La clase QGraphicsSceneMoveEvent proporciona eventos para el movimiento de widgets en el marco de la vista gráfica. Más...
| Cabecera: | #include <QGraphicsSceneMoveEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets)target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Hereda: | QGraphicsSceneEvent |
Funciones Públicas
| QGraphicsSceneMoveEvent() | |
| virtual | ~QGraphicsSceneMoveEvent() |
| QPointF | newPos() const |
| QPointF | oldPos() const |
Descripción Detallada
Un QGraphicsWidget se envía a sí mismo un QGraphicsSceneMoveEvent inmediatamente cuando su posición local cambia. El envío se implementa como parte de QGraphicsItem::itemChange().
Es similar a QMoveEvent, pero sus posiciones, oldPos() y newPos(), utilizan QPointF en lugar de QPoint.
Véase también QGraphicsItem::setPos(), QGraphicsItem::ItemPositionChange, y QGraphicsItem::ItemPositionHasChanged.
Documentación de funciones miembro
QGraphicsSceneMoveEvent::QGraphicsSceneMoveEvent()
Construye un QGraphicsSceneMoveEvent.
[virtual noexcept] QGraphicsSceneMoveEvent::~QGraphicsSceneMoveEvent()
Destruye el QGraphicsSceneMoveEvent.
QPointF QGraphicsSceneMoveEvent::newPos() const
Devuelve la nueva posición (es decir, la posición actual).
Véase también oldPos() y QGraphicsItem::setPos().
QPointF QGraphicsSceneMoveEvent::oldPos() const
Devuelve la posición anterior (es decir, la posición inmediatamente anterior al desplazamiento del widget).
Véase también newPos() y 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.