Skip to content

PythonQt.QtGui.QHoverEvent · declarations 001

Back to PythonQt.QtGui.QHoverEvent

oldPos

oldPos() -> Any

X.oldPos() -> PythonQt.QtCore.QPoint

Supplemental documentation: Qt 5 reference:

QPoint QHoverEvent::oldPos() const

Returns the previous position of the mouse cursor, relative to the widget that received the event. If there is no previous position, oldPos() will return the same position as pos().

On QEvent::HoverEnter events, this position will always be QPoint(-1, -1).

See also pos().

Upstream PySide2 reference signatures (binding differences may apply):

oldPos(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qhoverevent.html#oldPos

oldPosF

oldPosF() -> Any

X.oldPosF() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

const QPointF \&QHoverEvent::oldPosF() const

Returns the previous position of the mouse cursor, relative to the widget that received the event. If there is no previous position, oldPosF() will return the same position as posF().

On QEvent::HoverEnter events, this position will always be QPointF(-1, -1).

See also posF().

Upstream PySide2 reference signatures (binding differences may apply):

oldPosF(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qhoverevent.html#oldPosF

pos

pos() -> Any

X.pos() -> PythonQt.QtCore.QPoint

Supplemental documentation: Qt 5 reference:

QPoint QHoverEvent::pos() const

Returns the position of the mouse cursor, relative to the widget that received the event.

On QEvent::HoverLeave events, this position will always be QPoint(-1, -1).

See also oldPos().

Upstream PySide2 reference signatures (binding differences may apply):

pos(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qhoverevent.html#pos

posF

posF() -> Any

X.posF() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

const QPointF \&QHoverEvent::posF() const

Returns the position of the mouse cursor, relative to the widget that received the event.

On QEvent::HoverLeave events, this position will always be QPointF(-1, -1).

See also oldPosF().

Upstream PySide2 reference signatures (binding differences may apply):

posF(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qhoverevent.html#posF