QEnterEventclass contains parameters that describe an enter event. 更多 …
进入事件发生,当鼠标光标进入窗口或 Widget。
QEnterEvent
(
localPos
,
windowPos
,
screenPos
)
¶
- param localPos
QPointF- param screenPos
QPointF- param windowPos
QPointF
构造进入事件对象。
The points
localPos
,
windowPos
and
screenPos
specify the mouse cursor’s position relative to the receiving widget or item, window, and screen, respectively.
PySide2.QtGui.QEnterEvent.
globalPos
(
)
¶
QPoint
Returns the global position of the mouse cursor at the time of the event .
PySide2.QtGui.QEnterEvent.
globalX
(
)
¶
int
Returns the global position on the X-axis of the mouse cursor at the time of the event .
PySide2.QtGui.QEnterEvent.
globalY
(
)
¶
int
Returns the global position on the Y-axis of the mouse cursor at the time of the event .
PySide2.QtGui.QEnterEvent.
localPos
(
)
¶
QPointF
Returns the mouse cursor’s position relative to the receiving widget.
PySide2.QtGui.QEnterEvent.
pos
(
)
¶
QPoint
Returns the position of the mouse cursor relative to the receiving widget.
PySide2.QtGui.QEnterEvent.
screenPos
(
)
¶
QPointF
Returns the position of the mouse cursor relative to the receiving screen.
PySide2.QtGui.QEnterEvent.
windowPos
(
)
¶
QPointF
Returns the position of the mouse cursor relative to the receiving window.
PySide2.QtGui.QEnterEvent.
x
(
)
¶
int
Returns the x position of the mouse cursor relative to the receiving widget.
PySide2.QtGui.QEnterEvent.
y
(
)
¶
int
Returns the y position of the mouse cursor relative to the receiving widget.