<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt Quick as OpenGL GUI library]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">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:</p>
<ol>
<li>
<p dir="auto">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.</p>
</li>
<li>
<p dir="auto">What will be the performance penalty? Do you think that QML will show down dramatically the application frame rate?</p>
</li>
<li>
<p dir="auto">I found very nice looking Qt Quick applications here: <a href="http://quitcoding.com/?page=work" target="_blank" rel="noopener noreferrer nofollow ugc">http://quitcoding.com/?page=work</a> (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?</p>
</li>
</ol>
<p dir="auto">Thanks in advance for any advice, answer or guidance.</p>
]]></description><link>https://forum.qt.io/topic/21864/qt-quick-as-opengl-gui-library</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 05:26:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/21864.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Dec 2012 00:21:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt Quick as OpenGL GUI library on Mon, 03 Dec 2012 00:05:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Take a look at "QtMediaHub":<a href="http://qt-project.org/wiki/QtMediaHub" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/wiki/QtMediaHub</a> for a decent example of mixing QtQuick and C++ in a real-world application.</p>
<p dir="auto">Cheers,<br />
Chris.</p>
]]></description><link>https://forum.qt.io/post/158501</link><guid isPermaLink="true">https://forum.qt.io/post/158501</guid><dc:creator><![CDATA[chrisadams]]></dc:creator><pubDate>Mon, 03 Dec 2012 00:05:27 GMT</pubDate></item><item><title><![CDATA[Reply to Qt Quick as OpenGL GUI library on Sun, 02 Dec 2012 10:15:46 GMT]]></title><description><![CDATA[<h1>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).</h1>
<h1>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.</h1>
<h1>It's probably too complicated an example,but you can take a look at my "CCF":<a href="https://github.com/sierdzio/closecombatfree" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sierdzio/closecombatfree</a>. Logic is mixed, but right now I moved most out of QML into C++. Either way, it's rather straightforward. I find it easy and fast to prototype using QML with JavaScript, and then, when API solidifies, I move it to c++. Mostly for fun, as there is no visible performance loss at that level of complexity. QML also comes with good documentation on integration with C++, you can see it "here":<a href="http://qt-project.org/doc/qt-4.8/qtbinding.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qtbinding.html</a>. There is more, of course, but that's a good starting point.</h1>
]]></description><link>https://forum.qt.io/post/158452</link><guid isPermaLink="true">https://forum.qt.io/post/158452</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Sun, 02 Dec 2012 10:15:46 GMT</pubDate></item></channel></rss>