QEnterEvent¶
The QEnterEvent
class contains parameters that describe an enter event. More…
Synopsis¶
Functions¶
Detailed Description¶
Enter events occur when the mouse cursor enters a window or a widget.
- class PySide6.QtGui.QEnterEvent(arg__1)¶
PySide6.QtGui.QEnterEvent(localPos, scenePos, globalPos[, device=QPointingDevice.primaryPointingDevice()])
- Parameters
globalPos –
PySide6.QtCore.QPointF
scenePos –
PySide6.QtCore.QPointF
device –
PySide6.QtGui.QPointingDevice
localPos –
PySide6.QtCore.QPointF
arg__1 –
PySide6.QtGui.QEnterEvent
Constructs an enter event object originating from device
.
The points localPos
, scenePos
and globalPos
specify the mouse cursor’s position relative to the receiving widget or item, window, and screen or desktop, respectively.
- PySide6.QtGui.QEnterEvent.globalPos()¶
- Return type
Note
This function is deprecated.
Use globalPosition()
instead.
Returns the global position of the mouse cursor at the time of the event.
- PySide6.QtGui.QEnterEvent.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.
- PySide6.QtGui.QEnterEvent.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.
- PySide6.QtGui.QEnterEvent.localPos()¶
- Return type
Note
This function is deprecated.
Use position()
instead.
Returns the mouse cursor’s position relative to the receiving widget.
- PySide6.QtGui.QEnterEvent.pos()¶
- Return type
Note
This function is deprecated.
Use position()
.toPoint() instead.
Returns the position of the mouse cursor relative to the receiving widget.
- PySide6.QtGui.QEnterEvent.screenPos()¶
- Return type
Note
This function is deprecated.
Use globalPosition()
instead.
Returns the position of the mouse cursor relative to the receiving screen.
- PySide6.QtGui.QEnterEvent.windowPos()¶
- Return type
Note
This function is deprecated.
Use scenePosition()
instead.
Returns the position of the mouse cursor relative to the receiving window.
- PySide6.QtGui.QEnterEvent.x()¶
- Return type
int
Note
This function is deprecated.
Use position()
. instead.
Returns the x position of the mouse cursor relative to the receiving widget.
- PySide6.QtGui.QEnterEvent.y()¶
- Return type
int
Note
This function is deprecated.
Use position()
. instead.
Returns the y position of the mouse cursor relative to the receiving widget.
© 2022 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.