aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2020-08-11 14:30:58 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2020-08-17 08:34:34 +0000
commit5f7b909e597c9dddbc4f9979910c2b0f026755fb (patch)
tree531d380bf36a3c4efa98ae0795d8a280fa64075e /sources/pyside2/PySide2/QtQml/typesystem_qml.xml
parentfbcc734df92b6677dd226447b158f9922e1a6926 (diff)
QQmlComponent: allow thread in constructors
The constructor of QQmlComponent uses qml threads, and their usage was producing a deadlock when using along Python classes for a urlInterceptor, mainly related to the 'allow-thread' story that we need to take care of. Since the QQmlComponent required threads, we enable all the constructors to allow them to avoid a deadlock. Fixes: PYSIDE-1349 Change-Id: I86cb97b011f483cc4142bed6fae1ea525fa0db47 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2/QtQml/typesystem_qml.xml')
-rw-r--r--sources/pyside2/PySide2/QtQml/typesystem_qml.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtQml/typesystem_qml.xml b/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
index b61b28c07..57979f63f 100644
--- a/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
+++ b/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
@@ -109,6 +109,12 @@
<object-type name="QQmlComponent">
<enum-type name="CompilationMode"/>
<enum-type name="Status"/>
+ <modify-function signature="QQmlComponent(QObject*)" allow-thread="yes"/>
+ <modify-function signature="QQmlComponent(QQmlEngine*,QObject*)" allow-thread="yes"/>
+ <modify-function signature="QQmlComponent(QQmlEngine*,QString,QObject*)" allow-thread="yes"/>
+ <modify-function signature="QQmlComponent(QQmlEngine*,QString,QQmlComponent::CompilationMode,QObject*)" allow-thread="yes"/>
+ <modify-function signature="QQmlComponent(QQmlEngine*,QUrl,QObject*)" allow-thread="yes"/>
+ <modify-function signature="QQmlComponent(QQmlEngine*,QUrl,QQmlComponent::CompilationMode,QObject*)" allow-thread="yes"/>
</object-type>
<object-type name="QQmlContext"/>
<value-type name="QQmlError"/>