Home · All Classes · Modules

QKeyEventTransition Class Reference
[QtGui module]

The QKeyEventTransition class provides a transition for key events. More...

Inherits QEventTransition.

Methods


Detailed Description

The QKeyEventTransition class provides a transition for key events.

QKeyEventTransition is part of The State Machine Framework.


Method Documentation

QKeyEventTransition.__init__ (self, QState sourceState = None)

The sourceState argument, if not None, causes self to be owned by Qt instead of PyQt.

Constructs a new key event transition with the given sourceState.

QKeyEventTransition.__init__ (self, QObject object, QEvent.Type type, int key, QState sourceState = None)

The sourceState argument, if not None, causes self to be owned by Qt instead of PyQt.

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

bool QKeyEventTransition.eventTest (self, QEvent event)

Reimplemented from QAbstractTransition.eventTest().

int QKeyEventTransition.key (self)

Qt.KeyboardModifiers QKeyEventTransition.modifierMask (self)

QKeyEventTransition.onTransition (self, QEvent event)

Reimplemented from QAbstractTransition.onTransition().

QKeyEventTransition.setKey (self, int key)

QKeyEventTransition.setModifierMask (self, Qt.KeyboardModifiers modifiers)


PyQt 4.12.1 for X11Copyright © Riverbank Computing Ltd and The Qt Company 2015Qt 4.8.7