内容表

上一话题

QDropEvent

下一话题

QExposeEvent

QEnterEvent

QEnterEvent class contains parameters that describe an enter event. 更多

Inheritance diagram of PySide2.QtGui.QEnterEvent

概要

函数

详细描述

进入事件发生,当鼠标光标进入窗口或 Widget。

class 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.