Obsolete Members for QEventPoint

以下成员源于类 QEventPoint 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

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

成员函数文档编制

[deprecated in 6.0] 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 ().

[deprecated in 6.0] QPointF QEventPoint:: normalizedPos () const

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

使用 normalizedPosition () 代替。

[deprecated in 6.0] 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.

[deprecated in 6.0] 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.