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()。
返回鼠标光标相对于接收控件的位置。
[deprecated in 6.0] QPoint QEnterEvent::pos() const
自 6.0 版本起,此函数已被废弃。我们强烈建议不要在新代码中使用它。
请改用 `position().toPoint()`。
返回鼠标光标相对于接收控件的位置。
[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()`。
返回鼠标光标相对于接收控件的 x 坐标。
[deprecated in 6.0] int QEnterEvent::y() const
自 6.0 版本起,该函数已被废弃。我们强烈建议不要在新代码中使用它。
请改用position().y()。
返回鼠标光标相对于接收控件的 y 坐标。
© 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.