QPanGesture#
The QPanGesture
class describes a panning gesture made by the user. More…
New in version 4.6.
Synopsis#
Properties#
acceleration
- The acceleration in the motion of the touch point for this gesturedelta
- The offset from the previous input position to the current inputlastOffset
- The last offset recorded for this gestureoffset
- The total offset from the first input position to the current input position
Functions#
def
acceleration
()def
delta
()def
lastOffset
()def
offset
()def
setAcceleration
(value)def
setLastOffset
(value)def
setOffset
(value)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
For an overview of gesture handling in Qt and information on using gestures in your applications, see the Gestures in Widgets and Graphics View document.
See also
- class PySide6.QtWidgets.QPanGesture([parent=None])#
- Parameters:
parent –
PySide6.QtCore.QObject
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtWidgets.QPanGesture.acceleration: float#
This property holds the acceleration in the motion of the touch point for this gesture.
- Access functions:
acceleration
()setAcceleration
(value)
- property PᅟySide6.QtWidgets.QPanGesture.delta: PySide6.QtCore.QPointF#
This property holds the offset from the previous input position to the current input.
This is essentially the same as the difference between offset()
and lastOffset()
.
- Access functions:
delta
()
- property PᅟySide6.QtWidgets.QPanGesture.lastOffset: PySide6.QtCore.QPointF#
This property holds the last offset recorded for this gesture.
The last offset contains the change in position of the user’s input as reported in the offset
property when a previous gesture event was delivered for this gesture.
If no previous event was delivered with information about this gesture (i.e., this gesture object contains information about the first movement in the gesture) then this property contains a zero size.
- Access functions:
lastOffset
()setLastOffset
(value)
- property PᅟySide6.QtWidgets.QPanGesture.offset: PySide6.QtCore.QPointF#
This property holds the total offset from the first input position to the current input position.
The offset measures the total change in position of the user’s input covered by the gesture on the input device.
- PySide6.QtWidgets.QPanGesture.acceleration()#
- Return type:
float
See also
Getter of property acceleration
.
- PySide6.QtWidgets.QPanGesture.delta()#
- Return type:
Getter of property delta
.
- PySide6.QtWidgets.QPanGesture.lastOffset()#
- Return type:
See also
Getter of property lastOffset
.
- PySide6.QtWidgets.QPanGesture.offset()#
- Return type:
See also
Getter of property offset
.
- PySide6.QtWidgets.QPanGesture.setAcceleration(value)#
- Parameters:
value – float
See also
Setter of property acceleration
.
- PySide6.QtWidgets.QPanGesture.setLastOffset(value)#
- Parameters:
value –
PySide6.QtCore.QPointF
See also
Setter of property lastOffset
.
- PySide6.QtWidgets.QPanGesture.setOffset(value)#
- Parameters:
value –
PySide6.QtCore.QPointF
See also
Setter of property offset
.