<?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[GTK Style Not Working On Qt5.7+?]]></title><description><![CDATA[<p dir="auto">Qt version 5.6.2 and earlier came with the qgtk2 plugin that would correctly style applications with your system's GTK2 theme.  Qt 5.7.0 came with no GTK plugin, so applications appeared unstyled.  Qt 5.8.0 and 5.9.0 both include the new qgtk3 plugin, but it doesn't appear to work, so applications still don't use your system's GTK3 theme.</p>
<p dir="auto">If you print out the available styles with:</p>
<pre><code>qDebug() &lt;&lt; QStyleFactory::keys();
</code></pre>
<p dir="auto">Qt 5.6.2 lists: ("Windows", "GTK+", "Fusion")<br />
Qt 5.9.0 lists: ("Windows", "Fusion")</p>
<p dir="auto">Furthermore, when you run a Qt 5.9.0 application on Linux you always get the message:</p>
<pre><code>QApplication: invalid style override passed, ignoring it.
</code></pre>
<p dir="auto">I've been searching around for information on this, but can't find a lot.  The most interesting discussion I found is here:</p>
<p dir="auto"><a href="https://github.com/therecipe/qt/issues/306" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/therecipe/qt/issues/306</a></p>
<p dir="auto">He says that there are problems with the qgtk3 plugin on a variety of Linux distributions.</p>
<p dir="auto">Is there any way to get the qgtk3 plugin working?</p>
<p dir="auto">If not, would it be best to stick with Qt 5.6.2 for a couple of years while the problems are resolved?</p>
]]></description><link>https://forum.qt.io/topic/80675/gtk-style-not-working-on-qt5-7</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 11:31:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/80675.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Jun 2017 10:58:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GTK Style Not Working On Qt5.7+? on Thu, 18 Jun 2026 06:01:51 GMT]]></title><description><![CDATA[<p dir="auto">So I came here while researching for the problems with qt5 theme. So in the archi wiki it says -</p>
<pre><code>QGtk3Style
This is a platform theme built into qt5-base starting with version 5.7.0 [2] and qt6-base. It can be used to style Qt5 and Qt6 applications according to current GTK3 style. It can be enabled by setting the following environment variable: QT_QPA_PLATFORMTHEME=gtk3. 
</code></pre>
<p dir="auto">I am on nixos and while if i set the same envionment variable qt6 apps like pcmanfm-qt, qbittorrent correctly use the same colors as my gtk3 theme, but it seems qt5 apps even though in logs they seem to load the plugin, dont theme accordingly and show the default white color. Its an old thread so I just want to know is the plugin abandoned? Meaning its no use trying to wait for it to update and be fixed or should i just switch to qtstyleplugins for qt5 apps?</p>
]]></description><link>https://forum.qt.io/post/838807</link><guid isPermaLink="true">https://forum.qt.io/post/838807</guid><dc:creator><![CDATA[yash_raj_33]]></dc:creator><pubDate>Thu, 18 Jun 2026 06:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to GTK Style Not Working On Qt5.7+? on Mon, 26 Jun 2017 19:56:59 GMT]]></title><description><![CDATA[<p dir="auto">Yes, Qt Creator has had that issue since 5.7.  The last version of Qt Creator that correctly used the GTK theme is the one that came with 5.6.2.  I think it might be best to stick with 5.6.2 for now, and I'll give the next Qt release a try when it comes out.</p>
<p dir="auto">As for the ldd output, for some reason I'm getting a significantly different ouptut from when I tried with 5.8.  I might have run it with a different application last time or maybe I ran it on a debug build.  This is what I got running it just now with 5.9:</p>
<pre><code>linux-vdso.so.1 =&gt;  (0x00007fffe6d46000)
libQt5Widgets.so.5 =&gt; /home/user/Qt/Qt5.9.0/5.9/gcc_64/lib/libQt5Widgets.so.5 (0x00007f3117c9f000)
libQt5Gui.so.5 =&gt; /home/user/Qt/Qt5.9.0/5.9/gcc_64/lib/libQt5Gui.so.5 (0x00007f31174f2000)
libQt5Network.so.5 =&gt; /home/user/Qt/Qt5.9.0/5.9/gcc_64/lib/libQt5Network.so.5 (0x00007f3117160000)
libQt5Core.so.5 =&gt; /home/user/Qt/Qt5.9.0/5.9/gcc_64/lib/libQt5Core.so.5 (0x00007f3116a28000)
libstdc++.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3116681000)
libgcc_s.so.1 =&gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f311646a000)
libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f31160a1000)
libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3115e84000)
libGL.so.1 =&gt; /var/lib/VBoxGuestAdditions/lib/libGL.so.1 (0x00007f3115c4b000)
libm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3115942000)
libz.so.1 =&gt; /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3115728000)
libicui18n.so.56 =&gt; /home/user/Qt/Qt5.9.0/5.9/gcc_64/lib/libicui18n.so.56 (0x00007f311528e000)
libicuuc.so.56 =&gt; /home/user/Qt/Qt5.9.0/5.9/gcc_64/lib/libicuuc.so.56 (0x00007f3114ed6000)
libicudata.so.56 =&gt; /home/user/Qt/Qt5.9.0/5.9/gcc_64/lib/libicudata.so.56 (0x00007f31134f3000)
librt.so.1 =&gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007f31132ea000)
libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f31130e6000)
libgthread-2.0.so.0 =&gt; /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f3112ee4000)
libglib-2.0.so.0 =&gt; /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f3112bd2000)
/lib64/ld-linux-x86-64.so.2 (0x000055a3ba2f4000)
VBoxOGLcrutil.so =&gt; /usr/lib/x86_64-linux-gnu/VBoxOGLcrutil.so (0x00007f31129ef000)
libXcomposite.so.1 =&gt; /usr/lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f31127eb000)
libXdamage.so.1 =&gt; /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f31125e8000)
libXfixes.so.3 =&gt; /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f31123e2000)
libXext.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f31121cf000)
libpcre.so.3 =&gt; /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f3111f5f000)
libX11.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f3111c24000)
libxcb.so.1 =&gt; /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f3111a02000)
libXau.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f31117fd000)
libXdmcp.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f31115f7000)
</code></pre>
]]></description><link>https://forum.qt.io/post/401508</link><guid isPermaLink="true">https://forum.qt.io/post/401508</guid><dc:creator><![CDATA[Elsworth55]]></dc:creator><pubDate>Mon, 26 Jun 2017 19:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to GTK Style Not Working On Qt5.7+? on Mon, 26 Jun 2017 15:03:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/elsworth55">@<bdi>Elsworth55</bdi></a> said in <a href="/post/401461">GTK Style Not Working On Qt5.7+?</a>:</p>
<blockquote>
<p dir="auto">qgtk3 plugin</p>
</blockquote>
<p dir="auto">I think you are right.<br />
Also i have this file in 5.7<br />
"C:\Qt\5.7\Src\qtbase\src\plugins\platformthemes\gtk3\qgtk3theme.cpp"<br />
So I guess something else is wrong.</p>
<p dir="auto">The ldd output of this thread is still valid ?<br />
<a href="https://forum.qt.io/topic/75398/qt-5-8-0-qapplication-invalid-style-override-passed-ignoring-it/9">https://forum.qt.io/topic/75398/qt-5-8-0-qapplication-invalid-style-override-passed-ignoring-it/9</a></p>
<p dir="auto">Also seems that Creator itself suffer from it<br />
<a href="https://bugreports.qt.io/browse/QTBUG-53844" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-53844</a></p>
<p dir="auto">So not sure if its fixed and just bugged on some distros or not fixed<br />
at all.</p>
]]></description><link>https://forum.qt.io/post/401464</link><guid isPermaLink="true">https://forum.qt.io/post/401464</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Mon, 26 Jun 2017 15:03:05 GMT</pubDate></item><item><title><![CDATA[Reply to GTK Style Not Working On Qt5.7+? on Mon, 26 Jun 2017 14:43:08 GMT]]></title><description><![CDATA[<p dir="auto">I think that must be a different GTK3 plugin.  It's listed as abandoned on 18th June 2016, yet the qgtk3 plugin was first included with Qt 5.8.0 which was released on 23rd January 2017, and is also included with the recently released 5.9.0.</p>
<p dir="auto">I don't think they'd include it if the plugin had been abandoned.  Plus, I don't think they could abandon GTK theme emulation entirely since it's essential to make Qt applications look native on Linux.</p>
]]></description><link>https://forum.qt.io/post/401461</link><guid isPermaLink="true">https://forum.qt.io/post/401461</guid><dc:creator><![CDATA[Elsworth55]]></dc:creator><pubDate>Mon, 26 Jun 2017 14:43:08 GMT</pubDate></item><item><title><![CDATA[Reply to GTK Style Not Working On Qt5.7+? on Mon, 26 Jun 2017 13:00:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
I think it was abandoned<br />
<a href="https://codereview.qt-project.org/#/c/75757/" target="_blank" rel="noopener noreferrer nofollow ugc">https://codereview.qt-project.org/#/c/75757/</a></p>
<p dir="auto">Maybe its just old info :)</p>
]]></description><link>https://forum.qt.io/post/401445</link><guid isPermaLink="true">https://forum.qt.io/post/401445</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Mon, 26 Jun 2017 13:00:07 GMT</pubDate></item><item><title><![CDATA[Reply to GTK Style Not Working On Qt5.7+? on Mon, 26 Jun 2017 12:09:11 GMT]]></title><description><![CDATA[<p dir="auto">I'm interested in this as well - one of the main reasons I use Qt is to get native-ish look'n'feel on all platforms, including my main one.</p>
]]></description><link>https://forum.qt.io/post/401430</link><guid isPermaLink="true">https://forum.qt.io/post/401430</guid><dc:creator><![CDATA[Vadi2]]></dc:creator><pubDate>Mon, 26 Jun 2017 12:09:11 GMT</pubDate></item></channel></rss>