<?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[OpenGL Dynamic selected driver]]></title><description><![CDATA[<p dir="auto">Hello,<br />
is there a way to detect the current opengl implementation used between desktop , angle, software?<br />
I see a way to force the selection (using attributes), but not a direct way to detected the selected implementation.</p>
<p dir="auto">I would like to detect if I'm using desktop opengl because I need to workaround the fullscreen + dialogs bug.</p>
<p dir="auto">Thank you<br />
QbProg</p>
]]></description><link>https://forum.qt.io/topic/51574/opengl-dynamic-selected-driver</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 02:43:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/51574.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Feb 2015 09:57:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenGL Dynamic selected driver on Mon, 02 Mar 2015 09:43:03 GMT]]></title><description><![CDATA[<p dir="auto">Query format() from the QOpenGLContext after create(). Then check renderableType() to differentiate between OpenGL and OpenGL ES (ANGLE).</p>
<p dir="auto">As for differentiating between (non-ANGLE) OpenGL implementations, it's more tricky since there's no difference from Qt's point of view. However, you can still query strings like GL_RENDERER and look for "llvmpipe".</p>
<p dir="auto">The example qtbase/examples/opengl/contextinfo may be a useful tool and reference for doing such checks.</p>
]]></description><link>https://forum.qt.io/post/263619</link><guid isPermaLink="true">https://forum.qt.io/post/263619</guid><dc:creator><![CDATA[agocs]]></dc:creator><pubDate>Mon, 02 Mar 2015 09:43:03 GMT</pubDate></item><item><title><![CDATA[Reply to OpenGL Dynamic selected driver on Fri, 27 Feb 2015 08:47:29 GMT]]></title><description><![CDATA[<p dir="auto">Strange, for me work(I don't use QML)... Which version of Qt do you have??<br />
using this piece of code it give me true on test:</p>
<p dir="auto">@<br />
#include &lt;QApplication&gt;<br />
#include &lt;QOpenGLWidget&gt;<br />
int main(int argc, char *argv[])<br />
{<br />
QApplication a(argc, argv);<br />
a.setAttribute(Qt::AA_UseDesktopOpenGL);</p>
<p dir="auto">QSurfaceFormat fmt;<br />
fmt.setDepthBufferSize(24);<br />
fmt.setVersion(3, 2);<br />
fmt.setProfile(QSurfaceFormat::CoreProfile);</p>
<p dir="auto">QSurfaceFormat::setDefaultFormat(fmt);</p>
<p dir="auto">bool test = a.testAttribute(Qt::AA_UseDesktopOpenGL);<br />
QOpenGLWidget w;<br />
w.show();</p>
<p dir="auto">return a.exec();<br />
}@</p>
<p dir="auto">play with commenting , uncommenting the line with setAttribute, test give tru if the line is uncommented, false if is commented, as expected.</p>
]]></description><link>https://forum.qt.io/post/263365</link><guid isPermaLink="true">https://forum.qt.io/post/263365</guid><dc:creator><![CDATA[ceora]]></dc:creator><pubDate>Fri, 27 Feb 2015 08:47:29 GMT</pubDate></item><item><title><![CDATA[Reply to OpenGL Dynamic selected driver on Thu, 26 Feb 2015 16:58:43 GMT]]></title><description><![CDATA[<p dir="auto">unfortunately that doesn't seem to work, as these flags are used to force the loading behavior, but when you read them they are always false (of course with a QML scene already loaded).</p>
]]></description><link>https://forum.qt.io/post/263250</link><guid isPermaLink="true">https://forum.qt.io/post/263250</guid><dc:creator><![CDATA[QbProg]]></dc:creator><pubDate>Thu, 26 Feb 2015 16:58:43 GMT</pubDate></item><item><title><![CDATA[Reply to OpenGL Dynamic selected driver on Thu, 26 Feb 2015 12:12:15 GMT]]></title><description><![CDATA[<p dir="auto">If you are using QCoreApplication or QApplication, you can testit like this</p>
<p dir="auto">@QCoreApplication a(argc,argv);//in main</p>
<p dir="auto">bool test = a.testAttribute(Qt::AA_UseDesktopOpenGL);</p>
<p dir="auto">//or somewhere else in the code:<br />
bool test = qApp-&gt;testAttribute(Qt::AA_UseDesktopOpenGL);<br />
@</p>
]]></description><link>https://forum.qt.io/post/263226</link><guid isPermaLink="true">https://forum.qt.io/post/263226</guid><dc:creator><![CDATA[ceora]]></dc:creator><pubDate>Thu, 26 Feb 2015 12:12:15 GMT</pubDate></item></channel></rss>