QEnterEvent露

The QEnterEvent class contains parameters that describe an enter event. More鈥�

Inheritance diagram of PySide2.QtGui.QEnterEvent

Synopsis露

Functions露

Detailed Description露

Enter events occur when the mouse cursor enters a window or a widget.

class PySide2.QtGui.QEnterEvent(localPos, windowPos, screenPos)露
param localPos:

PySide2.QtCore.QPointF

param screenPos:

PySide2.QtCore.QPointF

param windowPos:

PySide2.QtCore.QPointF

Constructs an enter event object.

The points localPos , windowPos and screenPos specify the mouse cursor鈥檚 position relative to the receiving widget or item, window, and screen, respectively.

PySide2.QtGui.QEnterEvent.globalPos()露
Return type:

PySide2.QtCore.QPoint

Returns the global position of the mouse cursor 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 at the time of the event .

PySide2.QtGui.QEnterEvent.globalY()露
Return type:

int

Returns the global position on the Y-axis of the mouse cursor at the time of the event .

PySide2.QtGui.QEnterEvent.localPos()露
Return type:

PySide2.QtCore.QPointF

Returns the mouse cursor鈥檚 position relative to the receiving widget.

PySide2.QtGui.QEnterEvent.pos()露
Return type:

PySide2.QtCore.QPoint

Returns the position of the mouse cursor relative to the receiving widget.

PySide2.QtGui.QEnterEvent.screenPos()露
Return type:

PySide2.QtCore.QPointF

Returns the position of the mouse cursor relative to the receiving screen.

PySide2.QtGui.QEnterEvent.windowPos()露
Return type:

PySide2.QtCore.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.