The following members of class QNativeGestureEvent are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
(deprecated (6.2)) |
QNativeGestureEvent(Qt::NativeGestureType type, const QPointingDevice *device, const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, qreal realValue, quint64 sequenceId, quint64 intValue) |
(deprecated (6.0)) const QPoint |
globalPos() const |
(deprecated (6.0)) QPointF |
localPos() const |
(deprecated (6.0)) const QPoint |
pos() const |
(deprecated (6.0)) QPointF |
screenPos() const |
(deprecated (6.0)) QPointF |
windowPos() const |
[since 5.10]
QNativeGestureEvent::QNativeGestureEvent(Qt::NativeGestureType type, const QPointingDevice *device, const QPointF &localPos, const QPointF &scenePos, const QPointF
&globalPos, qreal realValue, quint64 sequenceId, quint64 intValue)This function is deprecated since 6.2. We strongly advise against using it in new code.
Use the other constructor, because intValue is no longer stored separately.
Constructs a native gesture event of type type originating from device.
The points localPos, scenePos and globalPos specify the gesture position relative to the receiving widget or item, window, and screen or desktop, respectively.
realValue is the macOS event parameter, sequenceId and intValue are the Windows event parameters.
Note: It's not possible to store realValue and intValue simultaneously: one or the other must be zero. If realValue == 0 and intValue != 0, it is stored in the same variable, such that value() returns the value given as intValue.
This function was introduced in Qt 5.10.
[since 5.2]
const QPoint QNativeGestureEvent::globalPos() constThis function is deprecated since 6.0. We strongly advise against using it in new code.
Use globalPosition().toPoint() instead.
Returns the position of the gesture as a QPointF in screen coordinates
This function was introduced in Qt 5.2.
[since 5.2]
QPointF QNativeGestureEvent::localPos() constThis function is deprecated since 6.0. We strongly advise against using it in new code.
Use position() instead.
Returns the position of the gesture as a QPointF, relative to the widget or item that received the event.
This function was introduced in Qt 5.2.
[since 5.2]
const QPoint QNativeGestureEvent::pos() constThis function is deprecated since 6.0. We strongly advise against using it in new code.
Use position().toPoint() instead.
Returns the position of the mouse cursor, relative to the widget or item that received the event.
This function was introduced in Qt 5.2.
[since 5.2]
QPointF QNativeGestureEvent::screenPos() constThis function is deprecated since 6.0. We strongly advise against using it in new code.
Use globalPosition() instead.
Returns the position of the gesture as a QPointF in screen coordinates.
This function was introduced in Qt 5.2.
[since 5.2]
QPointF QNativeGestureEvent::windowPos() constThis function is deprecated since 6.0. We strongly advise against using it in new code.
Use scenePosition() instead.
Returns the position of the gesture as a QPointF, relative to the window that received the event.
This function was introduced in Qt 5.2.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: