qt5base-lts/tests/manual/wasm/eventloop
Morten Johan Sørvig 82f14a95b5 wasm: add manual tests for main() and exec()
Add minimal examples which demonstrates how exec() works
on Qt for WebAssembly and how to implement main() without
calling QApplication::exec().

Change-Id: I44f1d16af19c538380cc56faf3f0f4cc9d66cf11
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-08-27 15:45:24 +02:00
..
dialog_exec wasm: add manual tests for main() and exec() 2021-08-27 15:45:24 +02:00
main_exec wasm: add manual tests for main() and exec() 2021-08-27 15:45:24 +02:00
main_noexec wasm: add manual tests for main() and exec() 2021-08-27 15:45:24 +02:00
CMakeLists.txt wasm: add manual tests for main() and exec() 2021-08-27 15:45:24 +02:00
README.md wasm: add manual tests for main() and exec() 2021-08-27 15:45:24 +02:00

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