Obsolete Members for QEnterEvent
类QEnterEvent 的以下成员已被弃用。提供这些成员是为了保持旧源代码的正常运行。我们强烈建议不要在新代码中使用它们。
公共函数
(deprecated in 6.0) QPoint | globalPos() const |
(deprecated in 6.0) int | globalX() const |
(deprecated in 6.0) int | globalY() const |
(deprecated in 6.0) QPointF | localPos() const |
(deprecated in 6.0) QPoint | pos() const |
(deprecated in 6.0) QPointF | screenPos() const |
(deprecated in 6.0) QPointF | windowPos() const |
(deprecated in 6.0) int | x() const |
(deprecated in 6.0) int | y() const |
成员函数文档
[deprecated in 6.0]
QPoint QEnterEvent::globalPos() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用globalPosition() 代替。
返回事件发生时鼠标指针的全局位置。
[deprecated in 6.0]
int QEnterEvent::globalX() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用globalPosition().x() 代替。
返回事件发生时鼠标光标在 X 轴上的全局位置。
[deprecated in 6.0]
int QEnterEvent::globalY() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用globalPosition().y() 代替。
返回事件发生时鼠标光标在 Y 轴上的全局位置。
[deprecated in 6.0]
QPointF QEnterEvent::localPos() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用position() 代替。
返回鼠标指针相对于接收 widget 的位置。
[deprecated in 6.0]
QPoint QEnterEvent::pos() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用position().toPoint() 代替它。
返回鼠标指针相对于接收 widget 的位置。
[deprecated in 6.0]
QPointF QEnterEvent::screenPos() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用globalPosition() 代替。
返回鼠标光标相对于接收屏幕的位置。
[deprecated in 6.0]
QPointF QEnterEvent::windowPos() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用scenePosition() 代替。
返回鼠标指针相对于接收窗口的位置。
[deprecated in 6.0]
int QEnterEvent::x() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用position().x() 代替它。
返回鼠标指针相对于接收 widget 的 x 位置。
[deprecated in 6.0]
int QEnterEvent::y() const
自 6.0 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用position().y() 代替。
返回鼠标指针相对于接收 widget 的 y 位置。
© 2025 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.