- class QEnterEvent¶
The
QEnterEvent
class contains parameters that describe an enter event. More…Synopsis¶
Methods¶
def
__init__()
def
globalPos()
def
globalX()
def
globalY()
def
localPos()
def
pos()
def
screenPos()
def
windowPos()
def
x()
def
y()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
Enter events occur when the mouse cursor enters a window or a widget.
- __init__(arg__1)¶
- Parameters:
arg__1 –
QEnterEvent
- __init__(localPos, scenePos, globalPos[, device=QPointingDevice.primaryPointingDevice()])
- Parameters:
localPos –
QPointF
scenePos –
QPointF
globalPos –
QPointF
device –
QPointingDevice
Constructs an enter event object originating from
device
.The points
localPos
,scenePos
andglobalPos
specify the mouse cursor’s position relative to the receiving widget or item, window, and screen or desktop, respectively.Use
globalPosition()
instead.Returns the global position of the mouse cursor at the time of the event.
- globalX()¶
- Return type:
int
Note
This function is deprecated.
Use
globalPosition()
.x()
instead.Returns the global position on the X-axis of the mouse cursor at the time of the event.
- globalY()¶
- Return type:
int
Note
This function is deprecated.
Use
globalPosition()
.y()
instead.Returns the global position on the Y-axis of the mouse cursor at the time of the event.
Use
position()
instead.Returns the mouse cursor’s position relative to the receiving widget.
Use
position()
.toPoint() instead.Returns the position of the mouse cursor relative to the receiving widget.
Use
globalPosition()
instead.Returns the position of the mouse cursor relative to the receiving screen.
Use
scenePosition()
instead.Returns the position of the mouse cursor relative to the receiving window.
- x()¶
- Return type:
int
Note
This function is deprecated.
Use
position()
.x() instead.Returns the x position of the mouse cursor relative to the receiving widget.
- y()¶
- Return type:
int
Note
This function is deprecated.
Use
position()
.y() instead.Returns the y position of the mouse cursor relative to the receiving widget.