4 ms·
I don't know if they've changed their approach over the past year, but the last time I looked at Qt demos for the web, I was solidly unimpressed. At the time,
by danShumway 6y ago
I don't know if they've changed their approach over the past year, but the last time I looked at Qt demos for the web, I was solidly unimpressed.
At the time, they were making almost all of the same mistakes that Flutter is, and the devs I talked to seemed to be of the opinion that those problems wouldn't be fixed until browsers started adding brand new capabilities specifically for them.
Looking now at the demos at https://www.qt.io/qt-examples-for-webassembly https://www.qt.io/qt-examples-for-webassembly, a lot of the same problems are jumping out at me. A complete lack of accessibility features, poor handling of scroll events, large load times, unfocusable fields, lack of keyboard controls, etc...
Halfway through playing with their pizza app, the page just froze and stopped responding to any clicks at all. Maybe those demos are outdated?
Blazor and Rust are showing a lot of promise here, but from what I know about Qt I'm much less optimistic, because Qt is used to handling everything about rendering itself -- and as Flutter is showing that's just not a good approach to building web GUI frameworks. But (again, purely from what I've seen) trying to layer on a system where Qt is actually interacting with the DOM seems like it would require a somewhat difficult shift in its architecture. Maybe I'm misunderstanding the problem though.
- gagege 6y agoWhoa, yeah, none of those Qt demos are good or even seem to work properly. Yikes.
- 0xFluegel 6y ago> Looking now at the demos at https://www.qt.io/qt-examples-for-webassembly https://www.qt.io/qt-examples-for-webassembly, a lot of the same problems are jumping out at me. A complete lack of accessibility features, poor handling of scroll events, large load times, unfocusable fields, lack of keyboard controls, etc... I found that hard to believe. But, clicking that link and trying the pizza demo... Yikes. It's not exaggerated at all.
- hnedeotes 6y agoQt for WebAssembly: Pizza Shop Application exit (TypeError: undefined is not an object (evaluating 'handle[name]'))
- sombersonder 6y agoMay I ask what browser and version you ran this in? It does look dated but ran okay for me on Firefox 86 and Chrome 89.
- hnedeotes 6y agoYeap, Safari 14.0.3
- barbarbar 6y agoWhen I try that link I get: RangeError: WebAssembly.Memory(): could not allocate memory So no pizza demo for me.
- ognarb 6y agoFor the moment the only useful usecase of qt for webassembly I found is: https://qmlonline.kde.org/ https://qmlonline.kde.org/ It's really useful to share some bits of QML but otherwise I wouldn't recommend using Qt for the web as much as I wouldn't recommend to use Flutter for the web.
- sgerenser 6y agoAt least you got the pizza demo to work at all. All I got was a large Qt logo with the message: Application exit (TypeError: undefined is not an object (evaluating 'handle[name]'))
- deleted 6y ago[deleted]
- cachvico 6y agoThese demos remind me of Flash..
- eska 6y agoThe pizza demo didn't even let me input text into the credit card input boxes..