I've been using QML for 3 or 4 years now. My answers are tainted with experience.
1. JavaScript: is there only to facilitate manipulation of Items and elements. Use C++ for any logic
2. Deployment: Yes
3. Size: Yes
4: This sounds like you're doing it wrong. IDs are scoped to their context (usually the item and on down)
Another problematic part is styling. QtWidgets can be styled using css and it works really well.
QtQuick controls on other hand can't be styled using CSS, which is bit of a bummer IMO.
Re:Qt Creator 4.0.0 released
by steaminghacker on Wednesday May 11, 2016 @11:17AM
(#11676075)
good point. what do people do for themes and styles in QML?
Re:Qt Creator 4.0.0 released
by zeitpolizei on Wednesday May 11, 2016 @12:03PM
(#11676518)
Not sure how many people use it, but you could check this out: https://github.com/Ableton/aqt-stylesheets
NICE!
Thanks for the tip.
Re:Qt Creator 4.0.0 released
by steaminghacker on Wednesday May 11, 2016 @11:12AM
(#11676045)
totally agree. I'd like to see more on deployment. it would be nice to have cross platform installer and updater too. I've had to make these myself.
I put my own QML into resources, but windeployqt.exe pulls in a big chunk of their own QML into the deployment. huh? these should all be resource.
My "hello world" app is 30MB, so yes this too.
>The apps are huge. It's like 50 MB for hello world.
This doesn't sound right. Can someone else verify? I'm pretty sure I've written Android applications in QML that are far smaller. Are you sure these are release binaries?
Depends what you use. Native styles brings in Widgets, for example.
* Javascript. Ew.
* Deployment is a bit of a nightmare. They have windeployqt.exe which helps, but it doesn't automatically copy the MingW DLLs, and all the QML files aren't compiled as resources which is a bit ugly.
* The apps are huge. It's like 50 MB for hello world.
* There isn't very good encapsulation of QML components. All object IDs seem to go in one big namespace.