diff options
| -rw-r--r-- | doc/changelogs/changes-6.7.3 | 2 | ||||
| -rw-r--r-- | sources/pyside6/PySide6/QtStateMachine/typesystem_statemachine.xml | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/changelogs/changes-6.7.3 b/doc/changelogs/changes-6.7.3 index 833b06933..93ea3609d 100644 --- a/doc/changelogs/changes-6.7.3 +++ b/doc/changelogs/changes-6.7.3 @@ -62,6 +62,8 @@ information about a particular change. has been fixed to work with Python 3.11 and later. - [PYSIDE-2836] PySide6/__init__.py now has a static list of modules, enabling code checkers to work. + - [PYSIDE-2870] A crash when using QStateMachine.postEvent() has been + fixed. **************************************************************************** * Shiboken6 * diff --git a/sources/pyside6/PySide6/QtStateMachine/typesystem_statemachine.xml b/sources/pyside6/PySide6/QtStateMachine/typesystem_statemachine.xml index 4b1e5c695..7a3fe1f6c 100644 --- a/sources/pyside6/PySide6/QtStateMachine/typesystem_statemachine.xml +++ b/sources/pyside6/PySide6/QtStateMachine/typesystem_statemachine.xml @@ -179,6 +179,17 @@ s1.addTransition(button.clicked, s1h)</code> </modify-argument> </modify-function> + <modify-function signature="postEvent(QEvent*,QStateMachine::EventPriority)"> + <modify-argument index="1"> + <define-ownership owner="c++"/> + </modify-argument> + </modify-function> + <modify-function signature="postDelayedEvent(QEvent*,int)"> + <modify-argument index="1"> + <define-ownership owner="c++"/> + </modify-argument> + </modify-function> + <add-function signature="configuration()" return-type="QSet<QAbstractState*>"> <inject-code class="target" position="beginning" file="../glue/qtstatemachine.cpp" snippet="qstatemachine-configuration"/> |
