Obsolete Members for QEventPoint

以下成員源於類 QEventPoint 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(deprecated (6.0)) QPointF lastNormalizedPos () const
(deprecated (6.0)) QPointF normalizedPos () const
(deprecated (6.0)) QPointF pos () const
(deprecated (6.0)) QPointF startNormalizedPos () const

成員函數文檔編製

QPointF QEventPoint:: lastNormalizedPos () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 globalLastPosition () 代替。

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.

另請參閱 normalizedPosition () 和 globalPressPosition ().

QPointF QEventPoint:: normalizedPos () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 normalizedPosition () 代替。

QPointF QEventPoint:: pos () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 position () 代替。

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

QPointF QEventPoint:: startNormalizedPos () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 globalPressPosition () 代替。

Returns the normalized press position of this point.