Skip to content

PythonQt.QtCore.QState · declarations 001

Back to PythonQt.QtCore.QState

ChildMode instance-attribute

ChildMode: 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

DontRestoreProperties instance-attribute

DontRestoreProperties: Any

ExclusiveStates instance-attribute

ExclusiveStates: Any

ParallelStates instance-attribute

ParallelStates: Any

RestorePolicy instance-attribute

RestorePolicy: 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

RestoreProperties instance-attribute

RestoreProperties: Any

activeChanged

activeChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.activeChanged; argument details are not documented.

addTransition

addTransition(sender: Any, signal: Any, target: Any) -> Any

X.addTransition(sender, signal, target) -> PythonQt.QtCore.QAbstractTransition

Supplemental documentation: Qt 5 reference:

void QState::addTransition(QAbstractTransition *transition)

Adds the given transition. The transition has this state as the source. This state takes ownership of the transition.

QSignalTransition *QState::addTransition(const QObject *sender, const char *signal, QAbstractState *target)

Adds a transition associated with the given signal of the given sender object, and returns the new QSignalTransition object. The transition has this state as the source, and the given target as the target state.

template \<typename PointerToMemberFunction> QSignalTransition *QState::addTransition(const QObject *sender, PointerToMemberFunction signal, QAbstractState *target)

This is an overloaded function.

Adds a transition associated with the given signal of the given sender object, and returns the new QSignalTransition object. The transition has this state as the source, and the given target as the target state.

This function was introduced in Qt 5.5.

QAbstractTransition *QState::addTransition(QAbstractState *target)

Adds an unconditional transition from this state to the given target state, and returns then new transition object.

Upstream PySide2 reference signatures (binding differences may apply):

addTransition(self, arg__1: object, arg__2: PySide2.QtCore.QAbstractState) -> PySide2.QtCore.QSignalTransition
addTransition(self, sender: PySide2.QtCore.QObject, signal: str, target: PySide2.QtCore.QAbstractState) -> PySide2.QtCore.QSignalTransition
addTransition(self, target: PySide2.QtCore.QAbstractState) -> PySide2.QtCore.QAbstractTransition
addTransition(self, transition: PySide2.QtCore.QAbstractTransition) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#addTransition

assignProperty

assignProperty(object: Any, name: str, value: Any) -> None

X.assignProperty(object, name, value)

Supplemental documentation: Qt 5 reference:

void QState::assignProperty(QObject *object, const char *name, const QVariant \&value)

Instructs this state to set the property with the given name of the given object to the given value when the state is entered.

See also propertiesAssigned().

Upstream PySide2 reference signatures (binding differences may apply):

assignProperty(self, object: PySide2.QtCore.QObject, name: str, value: typing.Any) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#assignProperty

childMode instance-attribute

childMode: Any

Qt 5 reference:

childMode : ChildMode

This property holds the child mode of this state

The default value of this property is QState::ExclusiveStates.

Access functions:

QState::ChildMode childMode() const
void setChildMode(QState::ChildMode mode)

Notifier signal:

void childModeChanged() [see note below]

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

QState::ChildMode QState::childMode() const

Returns the child mode of this state.

Note: Getter function for property childMode.

See also setChildMode().

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#childMode

childModeChanged

childModeChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.childModeChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QState::childModeChanged()

This signal is emitted when the childMode 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 childMode.

This function was introduced in Qt 5.4.

See also QState::childMode.

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#childModeChanged

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.destroyed; argument details are not documented.

entered

entered(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.entered; argument details are not documented.

errorState instance-attribute

errorState: QAbstractState

Qt 5 reference:

errorState : QAbstractState*

This property holds the error state of this state

Access functions:

QAbstractState * errorState() const
void setErrorState(QAbstractState *state)

Notifier signal:

void errorStateChanged() [see note below]

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

QAbstractState *QState::errorState() const

Returns this state's error state.

Note: Getter function for property errorState.

See also setErrorState() and QStateMachine::error().

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#errorState

errorStateChanged

errorStateChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.errorStateChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QState::errorStateChanged()

This signal is emitted when the errorState 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 errorState.

This function was introduced in Qt 5.4.

See also QState::errorState.

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#errorStateChanged

event

event(e: Any) -> bool

X.event(e) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QState::event(QEvent *e)

Reimplements: QAbstractState::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/qstate.html#event

exited

exited(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.exited; argument details are not documented.

finished

finished(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.finished; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QState::finished()

This signal is emitted when a final child state of this state is entered.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also QFinalState.

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#finished

initialState instance-attribute

initialState: QAbstractState

Qt 5 reference:

initialState : QAbstractState*

This property holds the initial state of this state (one of its child states)

Access functions:

QAbstractState * initialState() const
void setInitialState(QAbstractState *state)

Notifier signal:

void initialStateChanged() [see note below]

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

QAbstractState *QState::initialState() const

Returns this state's initial state, or nullptr if the state has no initial state.

Note: Getter function for property initialState.

See also setInitialState().

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#initialState

initialStateChanged

initialStateChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.initialStateChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QState::initialStateChanged()

This signal is emitted when the initialState 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 initialState.

This function was introduced in Qt 5.4.

See also QState::initialState.

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#initialStateChanged

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.objectNameChanged; argument details are not documented.

onEntry

onEntry(event: Any) -> None

X.onEntry(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QState::onEntry(QEvent *event)

Reimplements: QAbstractState::onEntry(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

onEntry(self, event: PySide2.QtCore.QEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#onEntry

onExit

onExit(event: Any) -> None

X.onExit(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QState::onExit(QEvent *event)

Reimplements: QAbstractState::onExit(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

onExit(self, event: PySide2.QtCore.QEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#onExit

propertiesAssigned

propertiesAssigned(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QState.propertiesAssigned; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QState::propertiesAssigned()

This signal is emitted when all properties have been assigned their final value. If the state assigns a value to one or more properties for which an animation exists (either set on the transition or as a default animation on the state machine), then the signal will not be emitted until all such animations have finished playing.

If there are no relevant animations, or no property assignments defined for the state, then the signal will be emitted immediately before the state is entered.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also QState::assignProperty() and QAbstractTransition::addAnimation().

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#propertiesAssigned

removeTransition

removeTransition(transition: Any) -> None

X.removeTransition(transition)

Supplemental documentation: Qt 5 reference:

void QState::removeTransition(QAbstractTransition *transition)

Removes the given transition from this state. The state releases ownership of the transition.

See also addTransition().

Upstream PySide2 reference signatures (binding differences may apply):

removeTransition(self, transition: PySide2.QtCore.QAbstractTransition) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#removeTransition

setChildMode

setChildMode(mode: Any) -> None

X.setChildMode(mode)

Supplemental documentation: Qt 5 reference:

void QState::setChildMode(QState::ChildMode mode)

Sets the child mode of this state.

Note: Setter function for property childMode.

See also childMode().

Upstream PySide2 reference signatures (binding differences may apply):

setChildMode(self, mode: PySide2.QtCore.QState.ChildMode) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#setChildMode

setErrorState

setErrorState(state: Any) -> None

X.setErrorState(state)

Supplemental documentation: Qt 5 reference:

void QState::setErrorState(QAbstractState *state)

Sets this state's error state to be the given state. If the error state is not set, or if it is set to nullptr, the state will inherit its parent's error state recursively. If no error state is set for the state itself or any of its ancestors, an error will cause the machine to stop executing and an error will be printed to the console.

Note: Setter function for property errorState.

See also errorState().

Upstream PySide2 reference signatures (binding differences may apply):

setErrorState(self, state: PySide2.QtCore.QAbstractState) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#setErrorState

setInitialState

setInitialState(state: Any) -> None

X.setInitialState(state)

Supplemental documentation: Qt 5 reference:

void QState::setInitialState(QAbstractState *state)

Sets this state's initial state to be the given state. state has to be a child of this state.

Note: Setter function for property initialState.

See also initialState().

Upstream PySide2 reference signatures (binding differences may apply):

setInitialState(self, state: PySide2.QtCore.QAbstractState) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#setInitialState

transitions

transitions() -> tuple

X.transitions() -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QAbstractTransition *> QState::transitions() const

Returns this state's outgoing transitions (i.e. transitions where this state is the source state), or an empty list if this state has no outgoing transitions.

This function was introduced in Qt 4.7.

See also addTransition().

Upstream PySide2 reference signatures (binding differences may apply):

transitions(self) -> typing.List[PySide2.QtCore.QAbstractTransition]

Source: https://doc.qt.io/archives/qt-5.15/qstate.html#transitions