QNativeGestureEvent露
- PyQt5.QtGui.QNativeGestureEvent
Inherits from QInputEvent.
Description露
The QNativeGestureEvent class contains parameters that describe a gesture event.
Native gesture events are generated by the operating system, typically by interpreting touch events. Gesture events are high-level events such as zoom or rotate.
Event Type |
Description |
Touch sequence |
---|---|---|
Qt::ZoomNativeGesture |
Magnification delta in percent. |
macOS: Two-finger pinch. |
Qt::SmartZoomNativeGesture |
Boolean magnification state. |
macOS: Two-finger douple tap (trackpad) / One-finger douple tap (magic mouse). |
Qt::RotateNativeGesture |
Rotation delta in degrees. |
macOS: Two-finger rotate. |
In addition, BeginNativeGesture and EndNativeGesture are sent before and after gesture event streams:
BeginNativeGesture ZoomNativeGesture ZoomNativeGesture ZoomNativeGesture EndNativeGesture
See also
Qt::NativeGestureTypeQGestureEvent.
Methods露
- __init__(QNativeGestureEvent)
TODO
- __init__(NativeGestureType, Union[QPointF, QPoint], Union[QPointF, QPoint], Union[QPointF, QPoint], float, int, int)
TODO
- __init__(NativeGestureType, QTouchDevice, Union[QPointF, QPoint], Union[QPointF, QPoint], Union[QPointF, QPoint], float, int, int)
TODO
- device() → QTouchDevice
Returns the device.
- gestureType() → NativeGestureType
TODO
- globalPos() → QPoint
TODO
- localPos() → QPointF
TODO
- pos() → QPoint
TODO
- screenPos() → QPointF
TODO
- value() → float
TODO
- windowPos() → QPointF
TODO