Qt5 to Qt6 style changes
-
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.
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.
What I have found is that I should be able to do this using QApplication::setStyle like this:
QApplication::setStyle("fusion");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?
-
Hi,
Which version of Qt are you using ? The one from your installer or the one from your distribution ?
Note that OS specific styles are not available on all platforms because they contain OS specific code. -
Hi,
Which version of Qt are you using ? The one from your installer or the one from your distribution ?
Note that OS specific styles are not available on all platforms because they contain OS specific code.@SGaist 6.7-3. From an installer from Qt. We did not build it ourselves.
Online it says that fusion should work to make things look like they did in Qt5.
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. -
J james b-s has marked this topic as solved
-
J james b-s has marked this topic as solved
-
J james b-s has marked this topic as unsolved