Obsolete Members for QEventPoint

The following members of class QEventPoint are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) QPointF lastNormalizedPos() const
(obsolete) QPointF normalizedPos() const
(obsolete) QPointF pos() const
(obsolete) QPointF startNormalizedPos() const

Member Function Documentation

QPointF QEventPoint::lastNormalizedPos() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Deprecated since Qt 6.0. Use globalLastPosition() instead.

Returns the normalized position of this point from the previous press or move event.

The coordinates are normalized to QInputDevice::availableVirtualGeometry(), i.e. (0, 0) is the top-left corner and (1, 1) is the bottom-right corner.

See also normalizedPos() and startNormalizedPos().

QPointF QEventPoint::normalizedPos() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Deprecated since Qt 6.0. Use normalizedPosition() instead.

QPointF QEventPoint::pos() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Deprecated since Qt 6.0. Use position() instead.

Returns the position of this point, relative to the widget or item that received the event.

QPointF QEventPoint::startNormalizedPos() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Deprecated since Qt 6.0. Use globalPressPosition() instead.

Returns the normalized press position of this point.

© 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.