The 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 |
QPointF | l |
QPointF | s |
QPointF | w |
The QEnterEvent class contains parameters that describe an enter event.
进入事件发生,当鼠标光标进入窗口或 Widget。
构造进入事件对象。
点 localPos , windowPos and screenPos 分别指定相对于接收 Widget 或项、窗口及屏幕的鼠标光标位置。
返回鼠标光标的全局位置 当事件发生时 .
Returns the global position on the X-axis of the mouse cursor 当事件发生时 .
Returns the global position on the Y-axis of the mouse cursor 当事件发生时 .
Returns the mouse cursor's position relative to the receiving widget.
Returns the position of the mouse cursor relative to the receiving widget.
Returns the position of the mouse cursor relative to the receiving screen.
Returns the position of the mouse cursor relative to the receiving window.
Returns the x position of the mouse cursor relative to the receiving widget.
Returns the y position of the mouse cursor relative to the receiving widget.