diff options
| author | Matthew Joyce <matthew.joyce@refeyn.com> | 2026-09-11 09:47:45 +0100 |
|---|---|---|
| committer | Matthew Joyce <matthew.joyce@refeyn.com> | 2026-09-14 11:28:55 +0000 |
| commit | 2fab77f1b5a98bd74c5bf2362636358a58b7890d (patch) | |
| tree | b2c32948910b3a0a3613f273d9a7b2c5818884f4 | |
| parent | 46e0dc4ddea788a11033707fdd2d70bd203a3236 (diff) | |
Fix ownership of QThread returned from QObject.thread()
The heuristic assigns the ownership to the object, which is incorrect
and causes the main thread wrapper to be deleted.
Fixes: PYSIDE-3463
Pick-to: 6.11 6.8
Change-Id: I84a9f54957218b6bc2f13fa3b92180bea019b0b2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| -rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index fa104fbac..4a4c01a75 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -1890,6 +1890,11 @@ <define-ownership class="target" owner="default"/> </modify-argument> </modify-function> + <modify-function signature="thread()const"> + <modify-argument index="return"> + <define-ownership class="target" owner="default"/> + </modify-argument> + </modify-function> <modify-function signature="setParent(QObject*)"> <modify-argument index="this"> <parent index="1" action="add"/> |
