QEnterEvent 类

QEnterEvent class contains parameters that describe an enter event. 更多...

头: #include <QEnterEvent>
qmake: QT += gui
Since: Qt 5.0
继承: QEvent

公共函数

QEnterEvent (const QPointF & localPos , const QPointF & windowPos , const QPointF & screenPos )
QPoint globalPos () const
int globalX () const
int globalY () const
const QPointF & localPos () const
QPoint pos () const
const QPointF & screenPos () const
const QPointF & windowPos () const
int x () const
int y () const

额外继承成员

详细描述

QEnterEvent class contains parameters that describe an enter event.

进入事件发生,当鼠标光标进入窗口或 Widget。

成员函数文档编制

QEnterEvent:: QEnterEvent (const QPointF & localPos , const QPointF & windowPos , const QPointF & screenPos )

构造进入事件对象。

localPos , windowPos and screenPos specify the mouse cursor's position relative to the receiving widget or item, window, and screen, respectively.

QPoint QEnterEvent:: globalPos () const

Returns the global position of the widget 在事件发生时 .

int QEnterEvent:: globalX () const

Returns the global position on the X-axis of the mouse cursor relative to the the widget.

int QEnterEvent:: globalY () const

Returns the global position on the Y-axis of the mouse cursor relative to the the widget.

const QPointF &QEnterEvent:: localPos () const

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

QPoint QEnterEvent:: pos () const

Returns the position of the mouse cursor in global screen coordinates.

const QPointF &QEnterEvent:: screenPos () const

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

const QPointF &QEnterEvent:: windowPos () const

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

int QEnterEvent:: x () const

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

int QEnterEvent:: y () const

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