QMouseEventTransition

Inheritance diagram of QMouseEventTransition

Note

This class was introduced in Qt 4.6

Synopsis

Functions

Detailed Description

The PySide.QtGui.QMouseEventTransition class provides a transition for mouse events.

PySide.QtGui.QMouseEventTransition is part of The State Machine Framework .

See also

QState.addTransition()

class PySide.QtGui.QMouseEventTransition(object, type, button[, sourceState=None])
class PySide.QtGui.QMouseEventTransition([sourceState=None])
Parameters:

Constructs a new mouse event transition with the given sourceState .

PySide.QtGui.QMouseEventTransition.button()
Return type:PySide.QtCore.Qt.MouseButton

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

PySide.QtGui.QMouseEventTransition.hitTestPath()
Return type:PySide.QtGui.QPainterPath

Returns the hit test path for this mouse event transition.

PySide.QtGui.QMouseEventTransition.modifierMask()
Return type:PySide.QtCore.Qt.KeyboardModifiers

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

PySide.QtGui.QMouseEventTransition.setButton(button)
Parameters:buttonPySide.QtCore.Qt.MouseButton

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

PySide.QtGui.QMouseEventTransition.setHitTestPath(path)
Parameters:pathPySide.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 ( QMouseEvent.pos() ) is inside the path.

PySide.QtGui.QMouseEventTransition.setModifierMask(modifiers)
Parameters:modifiersPySide.QtCore.Qt.KeyboardModifiers

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