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

自 6.0 版本起,此函数已被废弃。我们强烈建议不要在新代码中使用它。

请改用globalLastPosition()。

返回上一次点击或移动事件中该点的归一化位置。

坐标会根据QInputDevice::availableVirtualGeometry() 进行归一化,即(0, 0) 代表左上角,(1, 1) 代表右下角。

另请参阅 normalizedPosition() 和globalPressPosition()。

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

自 6.0 版起,此函数已被废弃。我们强烈建议不要在新代码中使用它。

请改用normalizedPosition()。

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

自 6.0 版本起,此函数已被废弃。我们强烈建议不要在新的代码中使用它。

请改用position()。

返回该点相对于接收该事件的小部件或项的位置。

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

自 6.0 版本起,此函数已被废弃。我们强烈建议不要在新代码中使用它。

请改用globalPressPosition()。

返回该点的归一化按压位置。

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