<?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[Understanding how Qt draws a GUI component ?]]></title><description><![CDATA[<p dir="auto">Hi , every one<br />
I heard that Qt now draws its GUI components fully natively , not like before (emulates them ) ,<br />
what I want to know is :<br />
The idea of how exactly Qt draw them natively in each platform ? is it just OS invoking (like someone in stackoverflow said) ?<br />
please, help me to understand the basic idea .</p>
<p dir="auto">Thanks :-)</p>
]]></description><link>https://forum.qt.io/topic/43488/understanding-how-qt-draws-a-gui-component</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 15:23:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/43488.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jul 2014 08:12:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 22:12:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">For mixing QPainter and OpenGL have a look at the Overpainting example</p>
]]></description><link>https://forum.qt.io/post/235234</link><guid isPermaLink="true">https://forum.qt.io/post/235234</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 09 Jul 2014 22:12:01 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 11:24:34 GMT]]></title><description><![CDATA[<p dir="auto">no problem , what I can do is just try to switch the painer in a cusatom widget and see what happen , maybe doing a bit of banckmark aswell</p>
]]></description><link>https://forum.qt.io/post/235138</link><guid isPermaLink="true">https://forum.qt.io/post/235138</guid><dc:creator><![CDATA[giordi]]></dc:creator><pubDate>Wed, 09 Jul 2014 11:24:34 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 11:23:15 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I am not experienced in this area enough to give you an answer.</p>
]]></description><link>https://forum.qt.io/post/235135</link><guid isPermaLink="true">https://forum.qt.io/post/235135</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 09 Jul 2014 11:23:15 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 11:08:18 GMT]]></title><description><![CDATA[<p dir="auto">thanks a lot man, last question , if i am using widgets , and I am making a custom widged meaning overriding paint event.<br />
If I want to switch to opengl do I have to be carefull about something or opengl/qt handles everything manually under the hood?</p>
]]></description><link>https://forum.qt.io/post/235130</link><guid isPermaLink="true">https://forum.qt.io/post/235130</guid><dc:creator><![CDATA[giordi]]></dc:creator><pubDate>Wed, 09 Jul 2014 11:08:18 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 11:01:08 GMT]]></title><description><![CDATA[<p dir="auto">For QtWidgets: yes.</p>
<p dir="auto">For QtQuick: no, OpenGL is the default.</p>
]]></description><link>https://forum.qt.io/post/235128</link><guid isPermaLink="true">https://forum.qt.io/post/235128</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 09 Jul 2014 11:01:08 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 09:55:11 GMT]]></title><description><![CDATA[<p dir="auto">really interesting! thanks siederzio , is by default the cpu taking care of the draw?</p>
]]></description><link>https://forum.qt.io/post/235115</link><guid isPermaLink="true">https://forum.qt.io/post/235115</guid><dc:creator><![CDATA[giordi]]></dc:creator><pubDate>Wed, 09 Jul 2014 09:55:11 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 09:00:07 GMT]]></title><description><![CDATA[<p dir="auto">OK, then to be clear: by "native" I've meant using native OS controlls, like wxWidgets library does: asking the OS to draw native scroll bar, or combo box, etc. Qt does not do this. It paints all the widgets itself, and only tries to mimick the looks of the OS it is running on.</p>
<p dir="auto">But obviously, some kind of native OS calling is happening deep inside, in order to actually draw some pixels on the screen, and open native window container. But that is usually not important at all to high level UI developers.</p>
<p dir="auto">Contrary to what Ben Jul said, you have a clear choice whether the widget should be drawn by the CPU or the GPU: widgets can use different painting methods (native, raster, OpenGL, for more see "here":<a href="http://qt-project.org/doc/qt-5/qpaintengine.html#Type-enum" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/qpaintengine.html#Type-enum</a>), and the user has choice which one should be utilised. Most people do not use that, though, because the default settings work well.</p>
]]></description><link>https://forum.qt.io/post/235110</link><guid isPermaLink="true">https://forum.qt.io/post/235110</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 09 Jul 2014 09:00:07 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 08:49:55 GMT]]></title><description><![CDATA[<p dir="auto">I posted this question in stackoverflow  before. but someone said</p>
<p dir="auto">( I'm pretty sure it just makes OS calls. It's up to the OS or not whether it's actually hardware accelerated. Other parts of Qt use OpenGL directly. –  Ben Jul 5 at 8:07 )</p>
<p dir="auto">Now its clear :-)<br />
Thanks a lot.</p>
]]></description><link>https://forum.qt.io/post/235107</link><guid isPermaLink="true">https://forum.qt.io/post/235107</guid><dc:creator><![CDATA[Code Man]]></dc:creator><pubDate>Wed, 09 Jul 2014 08:49:55 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding how Qt draws a GUI component ? on Wed, 09 Jul 2014 08:40:21 GMT]]></title><description><![CDATA[<p dir="auto">Qt is painting QtWidgets using QPainter, which uses (usually) the raster engine to draw the content. It is not using native OS calls, apart from few exceptions (file dialog, for example, which can be drawn either natively or using QtWidgets).</p>
<p dir="auto">QtQuick is painted using scenegraph, so OpenGL. Also, no native OS calls here.</p>
<p dir="auto">I think you either misunderstood (there are several meanings of the word "native" in computing) the stackoverflow post, or your information source is wrong.</p>
]]></description><link>https://forum.qt.io/post/235105</link><guid isPermaLink="true">https://forum.qt.io/post/235105</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 09 Jul 2014 08:40:21 GMT</pubDate></item></channel></rss>