PythonQt.QtCore.QAbstractTransition · declarations 001
Back to PythonQt.QtCore.QAbstractTransition
ExternalTransition
instance-attribute
ExternalTransition: Any
InternalTransition
instance-attribute
InternalTransition: Any
TransitionType
instance-attribute
TransitionType: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
addAnimation
addAnimation(animation: Any) -> None
X.addAnimation(animation)
Supplemental documentation: Qt 5 reference:
void QAbstractTransition::addAnimation(QAbstractAnimation *animation)
Adds the given animation to this transition. The transition does not take ownership of the animation.
See also removeAnimation() and animations().
Upstream PySide2 reference signatures (binding differences may apply):
addAnimation(self, animation: PySide2.QtCore.QAbstractAnimation) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#addAnimation
animations
animations() -> tuple
X.animations() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QAbstractAnimation *> QAbstractTransition::animations() const
Returns the list of animations associated with this transition, or an empty list if it has no animations.
See also addAnimation().
Upstream PySide2 reference signatures (binding differences may apply):
animations(self) -> typing.List[PySide2.QtCore.QAbstractAnimation]
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#animations
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtCore.QAbstractTransition.destroyed; argument details are not documented.
event
event(e: Any) -> bool
X.event(e) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QAbstractTransition::event(QEvent *e)
Reimplements: QObject::event(QEvent *e).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, e: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#event
eventTest
eventTest(event: Any) -> bool
X.eventTest(event) -> bool
Supplemental documentation: Qt 5 reference:
[pure virtual protected] bool QAbstractTransition::eventTest(QEvent *event)
This function is called to determine whether the given event should cause this transition to trigger. Reimplement this function and return true if the event should trigger the transition, otherwise return false.
Upstream PySide2 reference signatures (binding differences may apply):
eventTest(self, event: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#eventTest
machine
machine() -> Any
X.machine() -> PythonQt.QtCore.QStateMachine
Supplemental documentation: Qt 5 reference:
QStateMachine *QAbstractTransition::machine() const
Returns the state machine that this transition is part of, or nullptr if the
transition is not part of a state machine.
Upstream PySide2 reference signatures (binding differences may apply):
machine(self) -> PySide2.QtCore.QStateMachine
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#machine
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtCore.QAbstractTransition.objectNameChanged; argument details are not documented.
onTransition
onTransition(event: Any) -> None
X.onTransition(event)
Supplemental documentation: Qt 5 reference:
[pure virtual protected] void QAbstractTransition::onTransition(QEvent *event)
This function is called when the transition is triggered. The given event is what caused the transition to trigger. Reimplement this function to perform custom processing when the transition is triggered.
Upstream PySide2 reference signatures (binding differences may apply):
onTransition(self, event: PySide2.QtCore.QEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#onTransition
removeAnimation
removeAnimation(animation: Any) -> None
X.removeAnimation(animation)
Supplemental documentation: Qt 5 reference:
void QAbstractTransition::removeAnimation(QAbstractAnimation *animation)
Removes the given animation from this transition.
See also addAnimation().
Upstream PySide2 reference signatures (binding differences may apply):
removeAnimation(self, animation: PySide2.QtCore.QAbstractAnimation) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#removeAnimation
setTargetState
setTargetState(target: Any) -> None
X.setTargetState(target)
Supplemental documentation: Qt 5 reference:
void QAbstractTransition::setTargetState(QAbstractState *target)
Sets the target state of this transition.
Note: Setter function for property targetState.
See also targetState().
Upstream PySide2 reference signatures (binding differences may apply):
setTargetState(self, target: PySide2.QtCore.QAbstractState) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#setTargetState
setTargetStates
setTargetStates(targets: Any) -> None
X.setTargetStates(targets)
Supplemental documentation: Qt 5 reference:
void QAbstractTransition::setTargetStates(const QList\<QAbstractState *> \&targets)
Sets the target states of this transition to be the given targets.
Note: Setter function for property targetStates.
See also targetStates().
Upstream PySide2 reference signatures (binding differences may apply):
setTargetStates(self, targets: typing.Sequence[PySide2.QtCore.QAbstractState]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#setTargetStates
setTransitionType
setTransitionType(type: Any) -> None
X.setTransitionType(type)
Supplemental documentation: Qt 5 reference:
void QAbstractTransition::setTransitionType(QAbstractTransition::TransitionType type)
Sets the type of the transition to type.
Note: Setter function for property transitionType.
See also transitionType().
Upstream PySide2 reference signatures (binding differences may apply):
setTransitionType(self, type: PySide2.QtCore.QAbstractTransition.TransitionType) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#setTransitionType
sourceState
instance-attribute
sourceState: QState
Qt 5 reference:
sourceState : QState* const
This property holds the source state (parent) of this transition
Access functions:
| QState * | sourceState() const |
|---|---|
QState *QAbstractTransition::sourceState() const
Returns the source state of this transition, or nullptr if this transition has no
source state.
Note: Getter function for property sourceState.
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#sourceState
targetState
instance-attribute
targetState: QAbstractState
Qt 5 reference:
targetState : QAbstractState*
This property holds the target state of this transition
If a transition has no target state, the transition may still be triggered, but this will not cause the state machine's configuration to change (i.e. the current state will not be exited and re-entered).
Access functions:
| QAbstractState * | targetState() const |
|---|---|
| void | setTargetState(QAbstractState *target) |
Notifier signal:
| void | targetStateChanged() | [see note below] |
|---|---|---|
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
QAbstractState *QAbstractTransition::targetState() const
Returns the target state of this transition, or nullptr if the transition has no
target.
Note: Getter function for property targetState.
See also setTargetState().
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#targetState
targetStateChanged
targetStateChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtCore.QAbstractTransition.targetStateChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractTransition::targetStateChanged()
This signal is emitted when the targetState property is changed.
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
Note: Notifier signal for property targetState.
This function was introduced in Qt 5.4.
See also QAbstractTransition::targetState.
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#targetStateChanged
targetStates
instance-attribute
targetStates: Any
Qt 5 reference:
targetStates : QList\<QAbstractState*>
This property holds the target states of this transition
If multiple states are specified, all must be descendants of the same parallel group state.
Access functions:
| QList\<QAbstractState *> | targetStates() const |
|---|---|
| void | setTargetStates(const QList\<QAbstractState *> \&targets) |
Notifier signal:
| void | targetStatesChanged() | [see note below] |
|---|---|---|
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
QList\<QAbstractState *> QAbstractTransition::targetStates() const
Returns the target states of this transition, or an empty list if this transition has no target states.
Note: Getter function for property targetStates.
See also setTargetStates().
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#targetStates
targetStatesChanged
targetStatesChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtCore.QAbstractTransition.targetStatesChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractTransition::targetStatesChanged()
This signal is emitted when the targetStates property is changed.
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
Note: Notifier signal for property targetStates.
This function was introduced in Qt 5.4.
See also QAbstractTransition::targetStates.
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#targetStatesChanged
transitionType
instance-attribute
transitionType: Any
Qt 5 reference:
transitionType : TransitionType
indicates whether this transition is an internal transition, or an external transition.
Internal and external transitions behave the same, except for the case of a transition whose source state is a compound state and whose target(s) is a descendant of the source. In such a case, an internal transition will not exit and re-enter its source state, while an external one will.
By default, the type is an external transition.
Access functions:
| QAbstractTransition::TransitionType | transitionType() const |
|---|---|
| void | setTransitionType(QAbstractTransition::TransitionType type) |
QAbstractTransition::TransitionType QAbstractTransition::transitionType() const
Returns the type of the transition.
Note: Getter function for property transitionType.
See also setTransitionType().
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#transitionType
triggered
triggered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtCore.QAbstractTransition.triggered; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractTransition::triggered()
This signal is emitted when the transition has been triggered (after onTransition() has been called).
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
Source: https://doc.qt.io/archives/qt-5.15/qabstracttransition.html#triggered