Obsolete Members for QEnterEvent

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

公共函数

(deprecated (6.0)) QPoint globalPos () const
(deprecated (6.0)) int globalX () const
(deprecated (6.0)) int globalY () const
(deprecated (6.0)) QPointF localPos () const
(deprecated (6.0)) QPoint pos () const
(deprecated (6.0)) QPointF screenPos () const
(deprecated (6.0)) QPointF windowPos () const
(deprecated (6.0)) int x () const
(deprecated (6.0)) int y () const

成员函数文档编制

QPoint QEnterEvent:: globalPos () const

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

使用 globalPosition () 代替。

返回鼠标光标的全局位置 当事件发生时 .

int QEnterEvent:: globalX () const

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

使用 globalPosition (). x () 代替。

Returns the global position on the X-axis of the mouse cursor 当事件发生时 .

int QEnterEvent:: globalY () const

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

使用 globalPosition (). y () 代替。

Returns the global position on the Y-axis of the mouse cursor 当事件发生时 .

QPointF QEnterEvent:: localPos () const

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

使用 position () 代替。

Returns the mouse cursor's position relative to the receiving widget.

QPoint QEnterEvent:: pos () const

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

使用 position ().toPoint() instead.

Returns the position of the mouse cursor relative to the receiving widget.

QPointF QEnterEvent:: screenPos () const

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

使用 globalPosition () 代替。

Returns the position of the mouse cursor relative to the receiving screen.

QPointF QEnterEvent:: windowPos () const

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

使用 scenePosition () 代替。

Returns the position of the mouse cursor relative to the receiving window.

int QEnterEvent:: x () const

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

使用 position ().x() instead.

Returns the x position of the mouse cursor relative to the receiving widget.

int QEnterEvent:: y () const

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

使用 position ().y() instead.

Returns the y position of the mouse cursor relative to the receiving widget.