QEnterEvent¶
The
QEnterEvent
class contains parameters that describe an enter event. More…
Synopsis¶
Detailed Description¶
Enter events occur when the mouse cursor enters a window or a widget.
-
class
QEnterEvent
(localPos, windowPos, screenPos)¶ - param localPos
QPointF
- param screenPos
QPointF
- param windowPos
QPointF
Constructs an enter event object.
The points
localPos
,windowPos
andscreenPos
specify the mouse cursor’s position relative to the receiving widget or item, window, and screen, respectively.
-
PySide2.QtGui.QEnterEvent.
globalPos
()¶ - Return type
QPoint
Returns the global position of the widget at the time of the event .
-
PySide2.QtGui.QEnterEvent.
globalX
()¶ - Return type
int
Returns the global position on the X-axis of the mouse cursor relative to the the widget.
-
PySide2.QtGui.QEnterEvent.
globalY
()¶ - Return type
int
Returns the global position on the Y-axis of the mouse cursor relative to the the widget.
-
PySide2.QtGui.QEnterEvent.
localPos
()¶ - Return type
QPointF
Returns the mouse cursor’s position relative to the receiving widget.
-
PySide2.QtGui.QEnterEvent.
pos
()¶ - Return type
QPoint
Returns the position of the mouse cursor in global screen coordinates.
-
PySide2.QtGui.QEnterEvent.
screenPos
()¶ - Return type
QPointF
Returns the position of the mouse cursor relative to the receiving screen.
-
PySide2.QtGui.QEnterEvent.
windowPos
()¶ - Return type
QPointF
Returns the position of the mouse cursor relative to the receiving window.
-
PySide2.QtGui.QEnterEvent.
x
()¶ - Return type
int
Returns the x position of the mouse cursor relative to the receiving widget.
-
PySide2.QtGui.QEnterEvent.
y
()¶ - Return type
int
Returns the y position of the mouse cursor relative to the receiving widget.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.