News for hackers. Stuff that matters.
Re:A Book about Qt5 by toyg on Sunday March 03, 2019 @05:46PM (#19297421)
> a push for mobile [...] where QtWidgets wouldn’t work at all

Er, they actually worked fine on Maemo/Meego. I think even Android was supported at some point. But it has never been “cool”, and Nokia were desperate for getting cool.

QML was an attempt at doing what Electron has done, but starting from the other end (i.e. desktop -> web, rather than the other way around). It was aimed squarely at “cool web people” trying to build desktop and mobile apps. I believe it was also supposed to be married with some integrated cloud service (where rendering a QML-based interface in-browser was obviously going to be much easier than reimplementing QtWidgets), but I had no interest in that sort of thing at the time, and I don’t know the current situation.

Re:A Book about Qt5 by flukus on Sunday March 03, 2019 @11:26PM (#19298770)
> Er, they actually worked fine on Maemo/Meego.

Long before then and before Nokia even, back when smartphones were called PDA's, the iphone wasn't released and when maemo was GTK based, there was a QtWidgets based environment called qtopia (https://en.wikipedia.org/wiki/Qt_Extended).

Re:A Book about Qt5 by slavik81 on Sunday March 03, 2019 @06:23PM (#19297590)
If you've ever tried to do fancy animations in C++ using QSceneView, it's obvious why they created QML. It is painful to manually maintain all the relationships and transient states needed for an interactive animated UI. QML makes that simple and easy.

My only real problem with QML is that things can get really hairy really fast. QML does a great job of abstracting over it, but the complexity is all still there underneath. When something goes wrong, you end up debugging a tangeled mess of implicit behaviours, many of which were probably unintentional and unnoticed by anyone (including the original author that created them).

Re:A Book about Qt5 by viraptor on Sunday March 03, 2019 @06:21PM (#19297580)
> Er, they actually worked fine on Maemo/Meego.

Maemo was basically a full Linux though. It was closer to desktop squeezed into a mobile screen than a mobile platform, so lots of things could be compiled and "just work".

Re:A Book about Qt5 by toyg on Sunday March 03, 2019 @09:37PM (#19298377)
At the time, Nokia had even ported Qt to Symbian, which is a much more limited platform than iOs or Android. I don’t think there is any real impediment to using QtWidgets on mobile platforms.

Edit: to clarify, I mean the original Qt C++ toolkit, not the Python bindings (pyqt/pyside); the bindings only ever worked on Maemo, if i remember correctly.

Re:A Book about Qt5 by pjmlp on Monday March 04, 2019 @02:12AM (#19299384)
Kind of.

First they had to create PIPS, a POSIX environment for Symbian, because Symbian wasn't POSIX and the native language was a C++ dialect known as just Symbian C++.

Secondly, the Qt based apps weren't pure Qt, you needed to have a couple of #ifdefs sprinkled around, calling Symbian APIs directly, even for a plain hello world.