aboutsummaryrefslogtreecommitdiffstats
path: root/examples/async/minimal
diff options
context:
space:
mode:
authorAdrian Herrmann <[email protected]>2024-06-17 23:04:43 +0200
committerAdrian Herrmann <[email protected]>2024-06-27 19:19:07 +0200
commitdfc0d9cd4103b9c075169be969f88aaac42a003e (patch)
tree9d7f988afc060e63fd06e2cb5438f2d8417e4df6 /examples/async/minimal
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 <[email protected]> Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'examples/async/minimal')
-rw-r--r--examples/async/minimal/minimal_asyncio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/async/minimal/minimal_asyncio.py b/examples/async/minimal/minimal_asyncio.py
index 7ffd5030f..7c4952e5c 100644
--- a/examples/async/minimal/minimal_asyncio.py
+++ b/examples/async/minimal/minimal_asyncio.py
@@ -38,4 +38,4 @@ if __name__ == "__main__":
main_window = MainWindow()
main_window.show()
- QtAsyncio.run(handle_sigint=True)
+ QtAsyncio.run(qapp=app, handle_sigint=True)