aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/PySide6
diff options
context:
space:
mode:
authorAdrian Herrmann <adrian.herrmann@qt.io>2024-06-17 23:04:43 +0200
committerAdrian Herrmann <adrian.herrmann@qt.io>2024-06-27 19:19:07 +0200
commitdfc0d9cd4103b9c075169be969f88aaac42a003e (patch)
tree9d7f988afc060e63fd06e2cb5438f2d8417e4df6 /sources/pyside6/doc/PySide6
parent68d2b13a44fffcc72fe8aef88a194f1ed78ef1f2 (diff)
QtAsyncio: Remove application arg from loop policy
Remove the optional application argument from the constructor of QAsyncioEventLoopPolicy, as it is unnecessary. If a QCoreApplication or other type of qApp was created outside of QtAsyncio, it will always be retrieved by QCoreApplication.instance(), and therefore passing it as an argument makes little sense. Task-number: PYSIDE-769 Change-Id: Iac7a913a1c9d6ebbb0984fe11f8b5cda955baab1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/doc/PySide6')
-rw-r--r--sources/pyside6/doc/PySide6/QtAsyncio/index.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/doc/PySide6/QtAsyncio/index.rst b/sources/pyside6/doc/PySide6/QtAsyncio/index.rst
index 326f6efcc..0ad0f6f97 100644
--- a/sources/pyside6/doc/PySide6/QtAsyncio/index.rst
+++ b/sources/pyside6/doc/PySide6/QtAsyncio/index.rst
@@ -118,6 +118,9 @@ or
to run the coroutine and then stop the event loop upon its completion.
This latter case behaves identically to ``asyncio.run(my_coroutine())``.
+If there is no instance of a QCoreApplication, QGuiApplication or
+QApplication yet, a new instance of QCoreApplication is created.
+
An additional optional argument ``quit_qapp`` can be passed to ``run()``
to configure whether the QCoreApplication at the core of QtAsyncio
should be shut down when asyncio finishes. A special case where one