Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.14
-
None
Description
Hello,
I am having trouble making the WASM event loop running with only a QCoreApplication (works fine with a QGuiApplication).
If I understand correctly QWasmEventDispatcher::processEvents, the event loop depends on the refresh rate of the canvas on which the app is shown, since emscripten_set_main_loop_arg is called with 0 fps.
But if there is no canvas and I just want to have the Qt event loop running periodically, say once every 100 millisecond (or even manually through custom calls to qApp->processEvents() in the JS realm) how am I supposed to handle it ? Currently this blocks the whole web page and makes the browser issue performance warnings (in the case of firefox) or entirely stuck (in the case of chrome).
Thanks
Attachments
Issue Links
- relates to
-
QTBUG-76007 WebAssembly: Event dispatcher mk II
-
- Closed
-