QEnterEvent 類

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

額外繼承成員

詳細描述

The 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 分彆指定相對於接收 Widget 或項、窗口及屏幕的鼠標光標位置。

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

返迴相對接收 Widget 的鼠標光標位置。

QPoint QEnterEvent:: pos () const

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

const QPointF &QEnterEvent:: screenPos () const

返迴相對接收屏幕的鼠標光標位置。

const QPointF &QEnterEvent:: windowPos () const

返迴相對接收窗口的鼠標光標位置。

int QEnterEvent:: x () const

返迴相對接收 Widget 的鼠標光標 X 位置。

int QEnterEvent:: y () const

返迴相對接收 Widget 的鼠標光標 Y 位置。