QKeyEventTransition Class▲
-
Header: QKeyEventTransition
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS StateMachine)
target_link_libraries(mytarget PRIVATE Qt6::StateMachine)
-
qmake: QT += statemachine
-
Inherits: QEventTransition
-
Inherited By:
-
Group: QKeyEventTransition is part of statemachine
Detailed Description▲
QKeyEventTransition is part of Qt State Machine Framework.
See Also▲
See also QState::addTransition()
Property Documentation▲
[bindable] key : int▲
This property supports QProperty bindings.
This property holds the key that this key event transition is associated with
[bindable] modifierMask : Qt::KeyboardModifiers▲
This property supports QProperty bindings.
This property holds the keyboard modifier mask that this key event transition checks for
Member Function Documentation▲
QKeyEventTransition::QKeyEventTransition(QState *sourceState = nullptr)▲
Constructs a new key event transition with the given sourceState.
QKeyEventTransition::QKeyEventTransition(QObject *object, QEvent::Type type, int key, QState *sourceState = nullptr)▲
Constructs a new key event transition for events of the given type for the given object, with the given key and sourceState.
[virtual] QKeyEventTransition::~QKeyEventTransition()▲
Destroys this key event transition.
[override virtual protected] bool QKeyEventTransition::eventTest(QEvent *event)▲
Reimplements: QEventTransition::eventTest(QEvent *event).
int QKeyEventTransition::key() const▲
Returns the key that this key event transition checks for.
Getter function for property key.
See Also▲
See also setKey()
Qt::KeyboardModifiers QKeyEventTransition::modifierMask() const▲
Returns the keyboard modifier mask that this key event transition checks for.
Getter function for property modifierMask.
See Also▲
See also setModifierMask()
[override virtual protected] void QKeyEventTransition::onTransition(QEvent *event)▲
Reimplements: QEventTransition::onTransition(QEvent *event).
void QKeyEventTransition::setKey(int key)▲
Sets the key that this key event transition will check for.
Setter function for property key.
See Also▲
See also key()
void QKeyEventTransition::setModifierMask(Qt::KeyboardModifiers modifierMask)▲
Sets the keyboard modifier mask that this key event transition will check for to modifierMask.
Setter function for property modifierMask.
See Also▲
See also modifierMask()