There is currently no way to access the Qt Application's return code, as returned by QApplication.exec. Right now it is saved as rslt in _QEventLoop.run_forever and returned, but this return value is never used, with both qasync.run and QEventLoop.run_until_complete.
Here is a sample app with a button that should cause the app to exit with code 1, but doesn't:
There is currently no way to access the Qt Application's return code, as returned by
QApplication.exec
. Right now it is saved asrslt
in_QEventLoop.run_forever
and returned, but this return value is never used, with bothqasync.run
andQEventLoop.run_until_complete
.Here is a sample app with a button that should cause the app to exit with code 1, but doesn't:
Shouldn't there should be some way to grab the Qt exit code without bookkeeping it in user code?