Obsolete Members for QNativeGestureEvent
The following members of class QNativeGestureEvent are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) const QPoint | globalPos() const |
(obsolete) QPointF | localPos() const |
(obsolete) const QPoint | pos() const |
(obsolete) QPointF | screenPos() const |
(obsolete) QPointF | windowPos() const |
Member Function Documentation
[since 5.2]
const QPoint QNativeGestureEvent::globalPos() const
This function is obsolete. It is provided to keep old source code working. 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() const
This function is obsolete. It is provided to keep old source code working. 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() const
This function is obsolete. It is provided to keep old source code working. 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() const
This function is obsolete. It is provided to keep old source code working. 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() const
This function is obsolete. It is provided to keep old source code working. 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.