<?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[Qt5 to Qt6 style changes]]></title><description><![CDATA[<p dir="auto">We are in the process of moving from qt5.15 to Qt6. In the process, we've noticed that the style has changed on linux, not so much on windows. This is documented in Qt documentation.</p>
<p dir="auto">We are tying to get the style on linux to look more like it did in Qt5 which is also the way it still looks on windows.</p>
<p dir="auto">What I have found is that I should be able to do this using QApplication::setStyle like this:</p>
<pre><code>QApplication::setStyle("fusion");
</code></pre>
<p dir="auto">I've tried "fusion" and "windows" and various other methods and styles. None of them seem to make a difference. What is the proper way of setting the linux style to match either what was in Qt5 or what it is on windows in Qt6?</p>
]]></description><link>https://forum.qt.io/topic/164564/qt5-to-qt6-style-changes</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 23:46:13 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164564.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Apr 2026 19:01:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt5 to Qt6 style changes on Tue, 14 Apr 2026 20:25:05 GMT]]></title><description><![CDATA[<p dir="auto">I spoke too soon. This wasn't the proper solution. There are several other issues that need to be resolved and they are all documented as being resolved via the fusion style.</p>
]]></description><link>https://forum.qt.io/post/837741</link><guid isPermaLink="true">https://forum.qt.io/post/837741</guid><dc:creator><![CDATA[james b-s]]></dc:creator><pubDate>Tue, 14 Apr 2026 20:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to Qt5 to Qt6 style changes on Tue, 14 Apr 2026 19:47:09 GMT]]></title><description><![CDATA[<p dir="auto">QApplication::setDesktopSettingsAware(false); seems to do what I want.</p>
]]></description><link>https://forum.qt.io/post/837740</link><guid isPermaLink="true">https://forum.qt.io/post/837740</guid><dc:creator><![CDATA[james b-s]]></dc:creator><pubDate>Tue, 14 Apr 2026 19:47:09 GMT</pubDate></item><item><title><![CDATA[Reply to Qt5 to Qt6 style changes on Tue, 14 Apr 2026 19:27:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> 6.7-3. From an installer from Qt. We did not build it ourselves.</p>
<p dir="auto">Online it says that fusion should work to make things look like they did in Qt5.<br />
We are noticing background color changes, especially in various widgets, probably QLineEdit. The widget's background has changed from the white it is in Qt5 and qt6 windows, to a grey that makes it look readonly.</p>
]]></description><link>https://forum.qt.io/post/837739</link><guid isPermaLink="true">https://forum.qt.io/post/837739</guid><dc:creator><![CDATA[james b-s]]></dc:creator><pubDate>Tue, 14 Apr 2026 19:27:16 GMT</pubDate></item><item><title><![CDATA[Reply to Qt5 to Qt6 style changes on Tue, 14 Apr 2026 19:14:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Which version of Qt are you using ? The one from your installer or the one from your distribution ?<br />
Note that OS specific styles are not available on all platforms because they contain OS specific code.</p>
]]></description><link>https://forum.qt.io/post/837737</link><guid isPermaLink="true">https://forum.qt.io/post/837737</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 14 Apr 2026 19:14:20 GMT</pubDate></item></channel></rss>