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.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.