GTK themes in Qt applications
This guide will explain how to set up Qt to adopt the same style as GTK.
The GTK style for Qt can be built by setting the
gtk USE flag for .
gtk USE flag:
Now rebuild the package with its new USE flag:
emerge --ask --changed-use --oneshot dev-qt/qtwidgets
This section is a stub (it explains what to do but not how to do it). You can help by completing it.
Qt5 will try to inherit the configuration of the current desktop environment.
In some desktop environments, Qt5 does not pick up the configuration. This can sometimes be fixed by using the GNOME or KDE desktop preference utility and setting the XDG_CURRENT_DESKTOP environment variable to
Alternatively you could use the
qt5ct. The "oxygen" icon packs may sometimes be necessary.
Qt3 / Qt4
Qt5 doesn't have the qtconfig program. When encountering the following error, an alternative configuration method should be used:
qtconfig: could not exec '/usr/lib64/qt5/bin/qtconfig': No such file or directory
Reselecting the preferred theme may be necessary for Qt applications using qtconfig (from ):
Alternatively, the previous configuration files may be removed:
rm -r ~/.config/Trolltech*
Select the Default theme to use the system settings or set it to use the GTK style explicitly by selecting GTK theme.
- Individual applications might have their own configuration settings for their GUI, e.g. in VLC this is located in Tools → Preferences.
GTK 2 alternative
An alternative for users of GTK 2 and Qt5 is using the QtCurve cross-toolkit theme:
emerge --ask x11-themes/qtcurve
The downsides of this method are that it's not available for GTK 3 yet, and currently the only configuration GUI needs Qt5 and KDE Frameworks 5.
- Uniform look for Qt and GTK applications on Archlinux's wiki
- Configuration of Qt5 apps under environments other than KDE Plasma on Archlinux's wiki