Qt 6: Can't get GTK to work on Linux Mint
-
There is (and was) no gtk platform plugin. Qt5/6 only has a platformtheme plugin for gtk.
-
@Christian-Ehrlicher - Then how do I get it to work? Surely the Qt devs have offered us a way to implement widgets that follow system themes. I've been using Code::Blocks to build the GUI and CLion to bring the apps to life. And wxWidgets are native, right out of the box.
Btw, given the links below, some here seem to think differently than you.
https://forum.qt.io/topic/75080/use-gtk-theme-on-linux
https://forum.qt.io/topic/80675/gtk-style-not-working-on-qt5-7
-
Hi,
No, @Christian-Ehrlicher is correct, GTK support is provided as a theme plugin not a platform plugin.
-
@Driftwood said in Qt 6: Can't get GTK to work on Linux Mint:
I used the online installer and see nowhere it's even offered as an optional download.
The GTK plugin is not a separate download; it comes bundled with Qt.
how do I get it to work?
What issues are you having?
Btw, given the links below, some here seem to think differently than you.
To clarify @Christian-Ehrlicher's message: The GTK plugin is not in
gcc_64/plugins/platforms
, but ingcc_64/plugins/platformthemes
. -
@JKSH - I found this:
But it isn't working. And I see no way to turn it on. Everything I create with Qt on Linux comes away with the standard "Qt theme".
On the left, we have Qt. On the right, Code::Blocks. I'm not making a comparison here, because I know Code::Blocks uses wxWidgets, and they adapt instantly to any theme. But I am trying to point out that I just created both of these on my Linux box. C::B holds true to my theme while Qt doesn't. I'm just trying to make Qt roll with my theme. And I know it can, because I use some Qt software on Linux that uses any theme I set. I just don't know how to get my Qt stuff to behave in kind. Any help in this matter would be greatly appreciated.