How to read QueryString params
-
I've been rather successful at setting up Qt for WebAssembly using QML. For the most part I have a working app using web sockets and dynamic gui objects.
However I'm still struggling to pass parameters to the web app using the usual url's query string. This would be the equivalent, I guess, of reading the command line arguments of the stdin in regular desktop apps, but for the love of me I can't seem to figure out how to do this with wasm.
Has anyone done this before or knows how to do it?
Thanks!
-
You need this small patch:
https://codereview.qt-project.org/c/qt/qtbase/+/248624You will not need to recompile, just patch the qtloader.js file in your apps build directory.
-
Hi @lorn-potter . Sorry for my super late reply.
Your message was spot on. Not only that but it helped me understand some stuff about wasm that I wasn't very clear about.
I did some changes and I got my app up and running with no issues. This is awesome. I'm loving Qt more and more everyday.
Thank you very much and warm regards!