QMoveEvent Class
La classe QMoveEvent contiene i parametri relativi agli eventi di spostamento. Per saperne di più...
| Intestazione: | #include <QMoveEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Eredita da: | QEvent |
- Elenco di tutti i membri, compresi quelli ereditati
- QMoveEvent fa parte delle classi di eventi.
Funzioni pubbliche
| QMoveEvent(const QPoint &pos, const QPoint &oldPos) | |
| const QPoint & | oldPos() const |
| const QPoint & | pos() const |
Funzioni protette
| QMoveEvent(QMoveEvent &&) | |
| QMoveEvent & | operator=(QMoveEvent &&) |
| QMoveEvent & | operator=(const QMoveEvent &other) |
Descrizione dettagliata
Gli eventi di spostamento vengono inviati ai widget che sono stati spostati in una nuova posizione rispetto al loro genitore.
Il gestore di eventi QWidget::moveEvent() riceve gli eventi di spostamento.
Vedi anche QWidget::move() e QWidget::setGeometry().
Documentazione delle funzioni membro
QMoveEvent::QMoveEvent(const QPoint &pos, const QPoint &oldPos)
Crea un evento di spostamento con le posizioni del widget nuovo e di quello precedente, rispettivamente pos e oldPos.
[protected delete] QMoveEvent::QMoveEvent(QMoveEvent &&)
Crea un'istanza di ` QMoveEvent`. Questa funzione è stata eliminata.
const QPoint &QMoveEvent::oldPos() const
Restituisce la posizione precedente del widget.
const QPoint &QMoveEvent::pos() const
Restituisce la nuova posizione del widget. Per i widget di primo livello, tale valore non include il bordo della finestra.
[protected delete] QMoveEvent &QMoveEvent::operator=(QMoveEvent &&)
Assegna " other " a questa istanza di " QMoveEvent ". Questa funzione viene eliminata.
[noexcept protected default] QMoveEvent &QMoveEvent::operator=(const QMoveEvent &other)
Assegna il valore “ other ” a questa istanza “ 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.