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 QMouseEventTransition(object, type, button[, sourceState=None])

QMouseEventTransition([sourceState=None])

param type

Type

param sourceState

QState

param button

MouseButton

param object

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

Returns the button that this mouse event transition checks for.

See also

setButton()

PySide2.QtWidgets.QMouseEventTransition.hitTestPath()
Return type

QPainterPath

Returns the hit test path for this mouse event transition.

See also

setHitTestPath()

PySide2.QtWidgets.QMouseEventTransition.modifierMask()
Return type

KeyboardModifiers

Returns the keyboard modifier mask that this mouse event transition checks for.

PySide2.QtWidgets.QMouseEventTransition.setButton(button)
Parameters

buttonMouseButton

Sets the button that this mouse event transition will check for.

See also

button()

PySide2.QtWidgets.QMouseEventTransition.setHitTestPath(path)
Parameters

pathQPainterPath

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

Sets the keyboard modifier mask that this mouse event transition will check for to modifierMask .

See also

modifierMask()