mirror of https://github.com/qt/qtbase.git
The API changed from using int to std::chrono::milliseconds, update test. Pick-to: 6.10 Change-Id: I4bd4079e5b262859bae293909008cacc824248ac Reviewed-by: Lorn Potter <lorn.potter@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> |
||
---|---|---|
.. | ||
asyncify_exec | ||
dialog_exec | ||
eventloop_auto | ||
main_exec | ||
main_noexec | ||
suspendresumecontrol_auto | ||
thread_exec | ||
CMakeLists.txt | ||
README.md |
README.md
Event loop exec() and main() on Qt for WebAssembly
These examples demonstrate how QEventLoop::exec() works on Qt for WebAssembly, and also shows how to implement main() without calling QApplication::exec().
Contents
main_exec Standard Qt main(), where QApplication::exec() does not return
main_noexec Qt main() without QApplication::exec()
dialog_exec Shows how QDialog::exec() also does not return
thread_exec Shows how to use QThread::exec()
eventloop_auto Event loop autotest (manually run)