QPanGesture Class
La classe QPanGesture descrive un gesto di panoramica eseguito dall'utente. Per saperne di più...
| Intestazione: | #include <QPanGesture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Eredita da: | QGesture |
Proprietà
- acceleration : qreal
- delta : QPointF
- lastOffset : QPointF
- offset : QPointF
Funzioni pubbliche
| virtual | ~QPanGesture() |
| qreal | acceleration() const |
| QPointF | delta() const |
| QPointF | lastOffset() const |
| QPointF | offset() const |
| void | setAcceleration(qreal value) |
| void | setLastOffset(const QPointF &value) |
| void | setOffset(const QPointF &value) |
Descrizione dettagliata

Per una panoramica sulla gestione dei gesti in Qt e per informazioni sull'utilizzo dei gesti nelle applicazioni, consultare il documento " Gesti nei widget e nella vista grafica ".
Vedi anche QPinchGesture e QSwipeGesture.
Documentazione sulle proprietà
acceleration : qreal
Questa proprietà contiene l'accelerazione del movimento del punto di contatto per questo gesto
Funzioni di accesso:
| qreal | acceleration() const |
| void | setAcceleration(qreal value) |
[read-only] delta : QPointF
Questa proprietà contiene l'offset dalla posizione di input precedente a quella corrente
È sostanzialmente equivalente alla differenza tra offset() e lastOffset().
Funzioni di accesso:
| QPointF | delta() const |
lastOffset : QPointF
Questa proprietà contiene l'ultimo offset registrato per questo gesto
L'ultimo offset contiene la variazione di posizione dell'input dell'utente, come riportato nella proprietà ` offset ` quando è stato generato un precedente evento relativo a questo gesto.
Se non è stato generato alcun evento precedente contenente informazioni relative a questo gesto (ovvero, questo oggetto gesto contiene informazioni relative al primo movimento del gesto), allora questa proprietà ha dimensione pari a zero.
Funzioni di accesso:
| QPointF | lastOffset() const |
| void | setLastOffset(const QPointF &value) |
offset : QPointF
Questa proprietà contiene l'offset totale dalla prima posizione di input alla posizione di input corrente
L'offset misura la variazione totale di posizione dell'input dell'utente coperta dal gesto sul dispositivo di input.
Funzioni di accesso:
| QPointF | offset() const |
| void | setOffset(const QPointF &value) |
© 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.