QNativeGestureEvent Class
The QNativeGestureEvent class contains parameters that describe a gesture event. More...
| Header: | #include <QNativeGestureEvent> |
| qmake: | QT += gui |
| Since: | Qt 5.2 |
| Inherits: | QInputEvent |
This class was introduced in Qt 5.2.
Detailed Description
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::NativeGestureType and QGestureEvent.