Home · All Classes · Modules |
The QMouseEventTransition class provides a transition for mouse events. More...
Inherits QEventTransition.
The QMouseEventTransition class provides a transition for mouse events.
QMouseEventTransition is part of The State Machine Framework.
The sourceState argument, if not None, causes self to be owned by Qt instead of PyQt.
Constructs a new mouse event transition with the given sourceState.
The sourceState argument, if not None, causes self to be owned by Qt instead of PyQt.
Constructs a new mouse event transition for events of the given type for the given object, with the given button and sourceState.
Reimplemented from QAbstractTransition.eventTest().
Returns the hit test path for this mouse event transition.
See also setHitTestPath().
Reimplemented from QAbstractTransition.onTransition().
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.
See also hitTestPath() and QPainterPath.contains().
PyQt 4.12.1 for X11 | Copyright © Riverbank Computing Ltd and The Qt Company 2015 | Qt 4.8.7 |