News for hackers. Stuff that matters.
Re:Qt Creator 4.0.0 released by steaminghacker on Wednesday May 11, 2016 @10:21AM (#11675503)
I'm using Qt quick (LGPL version) for development. After a bit of a learning curve, i really like it.

Its important to recognise that QtQuick and QtWidgets are _different_ systems. Quick is all on the GPU. It awesome for building touch based apps. I'm currently targeting desktop development. I haven't found much else that will use the GPU pipeline in an easy way.

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.

Re:Qt Creator 4.0.0 released by dragly on Wednesday May 11, 2016 @12:27PM (#11676742)
Another feature I really like with QtQuick is how intuitive it is to design in QML. The declarative syntax is great in comparison to writing GUIs in C++. After all, I don't care about in which order the GUI elements are added to the window (which you have control over in C++), as long as they end up in the right place. The syntax also feels much more modern in comparison to alternatives like HTML/XML. After trying multiple ways to design GUIs in different languages over the years, QML is the best working alternative I have found. Most of the time I even find it easier to use than a visual design tool.