diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-06-28 15:18:29 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-06-28 16:11:28 +0000 |
commit | c047cde9c33275f99c5afc22a131ad65fc5f81c5 (patch) | |
tree | d87bff15033393d8622041df17e468970c915eaa | |
parent | aca260f141904332f2639ea5a0c7addd034d103a (diff) |
Enable threads for QML load methods
Otherwise, for example QQmlAbstractUrlInterceptor locks up.
Change-Id: I4f1b3e1829b00c16cbf983d6f297304c0e99023f
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 96d55ebcebb0eaffac79b75188e2332a072c8b94)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | sources/pyside6/PySide6/QtQml/typesystem_qml.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtQml/typesystem_qml.xml b/sources/pyside6/PySide6/QtQml/typesystem_qml.xml index 6947dec9c..2a90047be 100644 --- a/sources/pyside6/PySide6/QtQml/typesystem_qml.xml +++ b/sources/pyside6/PySide6/QtQml/typesystem_qml.xml @@ -151,6 +151,7 @@ <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qfile-path-1"/> </modify-function> <modify-function signature="load(const QUrl &)" allow-thread="yes" overload-number="2"/> + <modify-function signature="loadFromModule(QAnyStringView,QAnyStringView)" allow-thread="yes"/> </object-type> <object-type name="QQmlComponent"> <enum-type name="CompilationMode"/> @@ -161,6 +162,10 @@ <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"/> + <modify-function signature="loadFromModule(QAnyStringView,QAnyStringView,QQmlComponent::CompilationMode)" allow-thread="yes"/> + <modify-function signature="loadUrl(QUrl)" allow-thread="yes"/> + <modify-function signature="loadUrl(QUrl,QQmlComponent::CompilationMode)" allow-thread="yes"/> + <modify-function signature="setData(QByteArray,QUrl)" allow-thread="yes"/> </object-type> <object-type name="QQmlContext"> <value-type name="PropertyPair"/> |