QMoveEvent Class
La clase QMoveEvent contiene parametros para eventos de movimiento. Más...
| Cabecera: | #include <QMoveEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Hereda: | QEvent |
- Lista de todos los miembros, incluyendo los heredados
- QMoveEvent es parte de Clases de Eventos.
Funciones Públicas
| QMoveEvent(const QPoint &pos, const QPoint &oldPos) | |
| const QPoint & | oldPos() const |
| const QPoint & | pos() const |
Descripción Detallada
Los eventos Move son enviados a los widgets que han sido movidos a una nueva posición relativa a su padre.
El manejador de eventos QWidget::moveEvent() recibe eventos de movimiento.
Ver también QWidget::move() y QWidget::setGeometry().
Documentación de Funciones Miembro
QMoveEvent::QMoveEvent(const QPoint &pos, const QPoint &oldPos)
Construye un evento de movimiento con las posiciones nueva y antigua del widget, pos y oldPos respectivamente.
const QPoint &QMoveEvent::oldPos() const
Devuelve la posición antigua del widget.
const QPoint &QMoveEvent::pos() const
Devuelve la nueva posición del widget. Esto excluye el marco de la ventana para los widgets de nivel superior.
© 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.