Hi, could this library be used for PySide? #61
-
Hi, could this be used for PySide? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
What exactly are you looking for?
|
Beta Was this translation helpful? Give feedback.
What exactly are you looking for?
Are you writing pure Python applications with PySide and want something more convenient than the classical Qt API for asynchronous programming? Python natively supports
async / await
, so you could just wrap whatever Qt functionality you need into something that isAwaitable
.Are you writing a Qt/C++ extension for Python that needs to return a QtPromise to Python? Then it's probably best to create an
asyncio.Future
in the C++ binding and let the promise callFuture.set_result
orFuture.set_exception
.