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 globalPosition() instead.

Returns the normalized position of this point.

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 startNormalizedPos(), lastNormalizedPos(), and pos().

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.