News for hackers. Stuff that matters.
Re:Ask HN: Time to give up on Qt? by mkl on Monday July 09, 2012 @06:44AM (#4217507)
Hence QML. Right now I'm developing a desktop application with the interface done with QML and the main app in C++, and I would say the interface development is easy, as is connecting it to the C++.

The caveat at present is that the standard desktop widgets are not yet fully available from QML (see [1] for a recent update). For most of my application this doesn't matter (I haven't decided how I'll do the settings dialog yet), but for enterprise apps it quite likely does.

[1] http://labs.qt.nokia.com/2012/06/06/desktop-components-for-q...

Re:Ask HN: Time to give up on Qt? by dkersten on Monday July 09, 2012 @07:28AM (#4217615)
The caveat at present is that the standard desktop widgets are not yet fully available from QML

I hear Qt5 will have have all (or a lot of) the standard widgets available in QML. Until then, using QGraphicsProxyWidget is a quick and easy way to embed QWidgets inside QML. Here's an example: http://qt-project.org/doc/qt-4.8/declarative-cppextensions-q...

I haven't decided how I'll do the settings dialog yet

I would use QGraphicsProxyWidget and this: http://doc.trolltech.com/solutions/4/qtpropertybrowser/index...

Re:Ask HN: Time to give up on Qt? by mkl on Monday July 09, 2012 @08:24AM (#4217775)
Thanks for the links - didn't know about the property browser thing.

It's not quite as simple as waiting for Qt5. From my earlier link: The components are hosted as a Qt Playground project and won’t be a part of the 5.0 release. They will instead have separate releases, most likely in sync with the Qt 5 releases. At some point we will look at making them a proper part of Qt 5.

These separate component releases will be important, as the proxy widget mechanism won't be available for Qt5's QSceneGraph-backed QML. Nor does there seem to be a replacement coming yet, mostly for performance reasons [1].

[1] http://www.mail-archive.com/[email protected]/msg04...