Qt Quick as OpenGL GUI library
I was looking around for an OpenGL GUI library when I accidentally came across Qt Quick. I think that QML combined with QML Components for Desktop can perfectly fit my needs. Therefore I have some questions:
Do you think that QML can be easily integrated into OpenGL application (written in C++). I want QML to be used only for the UI (i.e. for dialogs, sliders, check boxes, radio buttons) so the user can easily modify some of the properties/settings of the program. Absolutely no other logic.
What will be the performance penalty? Do you think that QML will show down dramatically the application frame rate?
I found very nice looking Qt Quick applications here: http://quitcoding.com/?page=work (Qt5 Cinematic Experience is my favourite). Unfortunately the whole application is written entirely using QML (there is not C++ backend). Can you point me out some demos (preferably with source code) where QML is mixed up with C++ and OpenGL and Qt Quick is used only for the GUI?
Thanks in advance for any advice, answer or guidance.
I don't know about this one. You would have to experiment with this, but it definitely seems possible (take a look at QDeclarativeView/QQuickView).
Impossible to say. How would you judge the penalty? What would you compare it to? In general, Qt QUICK 1 is painted using Qt's raster engine, which is very fast, but software-bound. Qt QUICK 2 is based on Qt Scenegraph, which paints using OpenGL. That does not answer your question, though, and I don't know what would. Of course, QML comes with it's own engine, JS engine and hooks up to meta object system, but I can't say how it will affect performance in your project.
Take a look at "QtMediaHub":http://qt-project.org/wiki/QtMediaHub for a decent example of mixing QtQuick and C++ in a real-world application.