News for hackers. Stuff that matters.
Re:Qt Creator 4.0.0 released by IshKebab on Wednesday May 11, 2016 @10:37AM (#11675667)
QtQuick is definitely a step forward with respect to touch input and slick animated UIs, but there are things I really dislike about it.

* 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.

Re:Qt Creator 4.0.0 released by cheez on Wednesday May 11, 2016 @01:02PM (#11677055)
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)

Re:Qt Creator 4.0.0 released by gnufied on Wednesday May 11, 2016 @11:05AM (#11675977)
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
Re:Qt Creator 4.0.0 released by cheez on Wednesday May 11, 2016 @01:03PM (#11677064)
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.

Re:Qt Creator 4.0.0 released by twotavol on Wednesday May 11, 2016 @03:27PM (#11678460)
>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?

Re:Qt Creator 4.0.0 released by cheez on Thursday May 12, 2016 @09:09AM (#11683080)
Depends what you use. Native styles brings in Widgets, for example.
Re:Qt Creator 4.0.0 released by rhodysurf on Wednesday May 11, 2016 @12:07PM (#11676558)
CMake makes deployment a bit easier for our company.

Also you can include QML files as resources using qrc and they will compiled into the binary.