GTK themes in Qt applications
The GTK style for Qt can be built by setting the
gtk USE flag for dev-qt/qtwidgets.
gtk USE flag:
Now rebuild the package with its new USE flag:
emerge --ask --changed-use --oneshot dev-qt/qtwidgets
You might need to reselect the preferred theme for Qt applications using qtconfig (from dev-qt/qt3support):
or just delete the previous configuration files:
rm -r ~/.config/Trolltech*
Select the Default theme to use your 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.