News for hackers. Stuff that matters.
Re:Flutter 2 by danShumway on Wednesday March 03, 2021 @04:36PM (#26334959)
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, 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.

Re:Flutter 2 by 0xFluegel on Wednesday March 03, 2021 @05:41PM (#26335842)
> Looking now at the demos at 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.

Re:Flutter 2 by hnedeotes on Wednesday March 03, 2021 @11:27PM (#26338601)
Qt for WebAssembly: Pizza Shop Application exit (TypeError: undefined is not an object (evaluating 'handle[name]'))
Re:Flutter 2 by sombersonder on Thursday March 04, 2021 @10:04AM (#26343264)
May 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.
Re:Flutter 2 by hnedeotes on Thursday March 04, 2021 @10:19AM (#26343464)
Yeap, Safari 14.0.3
Re:Flutter 2 by barbarbar on Thursday March 04, 2021 @01:21AM (#26339255)
When I try that link I get: RangeError: WebAssembly.Memory(): could not allocate memory

So no pizza demo for me.

Re:Flutter 2 by gagege on Wednesday March 03, 2021 @05:26PM (#26335644)
Whoa, yeah, none of those Qt demos are good or even seem to work properly. Yikes.
Re:Flutter 2 by sgerenser on Wednesday March 03, 2021 @10:12PM (#26338166)
At 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]'))
Re:Flutter 2 by ognarb on Wednesday March 03, 2021 @06:48PM (#26336563)
For the moment the only useful usecase of qt for webassembly I found is: 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.
Re:Flutter 2 by eska on Saturday March 06, 2021 @09:00AM (#26367386)
The pizza demo didn't even let me input text into the credit card input boxes..
Re:Flutter 2 by cachvico on Thursday March 04, 2021 @10:19PM (#26352173)
These demos remind me of Flash..