以下成员源于类 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
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 globalPosition () 代替。
返回鼠标光标的全局位置 当事件发生时 .
[deprecated in 6.0]
int
QEnterEvent::
globalX
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 globalPosition (). x () 代替。
返回鼠标光标 X 轴的全局位置 当事件发生时 .
[deprecated in 6.0]
int
QEnterEvent::
globalY
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 globalPosition (). y () 代替。
返回鼠标光标 Y 轴的全局位置 当事件发生时 .
[deprecated in 6.0]
QPointF
QEnterEvent::
localPos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 position () 代替。
返回相对接收 Widget 的鼠标光标位置。
[deprecated in 6.0]
QPoint
QEnterEvent::
pos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 position ().toPoint() instead.
返回相对接收 Widget 的鼠标光标位置。
[deprecated in 6.0]
QPointF
QEnterEvent::
screenPos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 globalPosition () 代替。
返回相对接收屏幕的鼠标光标位置。
[deprecated in 6.0]
QPointF
QEnterEvent::
windowPos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 scenePosition () 代替。
返回相对接收窗口的鼠标光标位置。
[deprecated in 6.0]
int
QEnterEvent::
x
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 position ().x() instead.
返回相对接收 Widget 的鼠标光标 X 位置。
[deprecated in 6.0]
int
QEnterEvent::
y
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 position ().y() instead.
返回相对接收 Widget 的鼠标光标 Y 位置。