QMouseEventTransition

The QMouseEventTransition class provides a transition for mouse events. More

Inheritance diagram of PySide2.QtWidgets.QMouseEventTransition

New in version 4.6.

Synopsis

Functions

Detailed Description

QMouseEventTransition is part of The State Machine Framework .

See also

addTransition()

class PySide2.QtWidgets.QMouseEventTransition(object, type, button[, sourceState=None])

PySide2.QtWidgets.QMouseEventTransition([sourceState=None])

param type

Type

param sourceState

PySide2.QtCore.QState

param button

MouseButton

param object

PySide2.QtCore.QObject

Constructs a new mouse event transition for events of the given type for the given object , with the given button and sourceState .

Constructs a new mouse event transition with the given sourceState .

PySide2.QtWidgets.QMouseEventTransition.button()
Return type

MouseButton

This property holds the button that this mouse event transition is associated with.

PySide2.QtWidgets.QMouseEventTransition.hitTestPath()
Return type

PySide2.QtGui.QPainterPath

Returns the hit test path for this mouse event transition.

See also

setHitTestPath()

PySide2.QtWidgets.QMouseEventTransition.modifierMask()
Return type

KeyboardModifiers

This property holds the keyboard modifier mask that this mouse event transition checks for.

PySide2.QtWidgets.QMouseEventTransition.setButton(button)
Parameters

buttonMouseButton

This property holds the button that this mouse event transition is associated with.

PySide2.QtWidgets.QMouseEventTransition.setHitTestPath(path)
Parameters

pathPySide2.QtGui.QPainterPath

Sets the hit test path for this mouse event transition to path . If a valid path has been set, the transition will only trigger if the mouse event position ( pos() ) is inside the path.

See also

hitTestPath() contains()

PySide2.QtWidgets.QMouseEventTransition.setModifierMask(modifiers)
Parameters

modifiersKeyboardModifiers

This property holds the keyboard modifier mask that this mouse event transition checks for.