qt apps stopped inheriting gtk themes

After в fresh installation of Убунту Гноме 15.10, qt apps like qpdfview or глобальный QuiteRSS suddenly stopped to inherit the gtk theme, in my женил Numix. The same is also true for the default Adwaita theme, so most likely it's not the themВs fault. It seems, that these apps always использовал the cleanlooks qt theme, regardless of the present gtk theme.

гve never had any problems with theming on previous installations of Убунту Гноме.

Installing qt4-qtconfig and playing with different settings (GUI style: default, cleanlooks or gtk +) didn't had any effect on these apps. Curiously, the qt4-qtconfig app itself is themed properly. So after selecting в different theme, e.g. "desktop settings (default)" or "windows", the theme of this app changes, but not in qpdfview or QuiteRSS. The trick with installing libgnomeui-0 (mentioned here) didn't help either.

Did anybody experience the same and knows в workaround?

10
задан 6 December 2015 в 04:11

1 ответ

На Ubuntu 17.10 Qt4 приложения действительно наследовали глобальную тему GTK, в то время как Qt5 не делают. С тех пор libqt5libqgtk2 не доступно в официальных репозиториях Ubuntu больше, мы должны использовать другое обходное решение:

Установка qt5-style-plugins из репозиториев Ubuntu. Тип gedit ~/.profile в терминале и добавляет export QT_QPA_PLATFORMTHEME=gtk2 к последней строке. При добавлении его к sudo gedit /etc/environment работы также, но я предпочитаю ~/.profile.

Перезагрузка и обладают!

18
ответ дан 23 November 2019 в 04:24

Другие вопросы по тегам:

Похожие вопросы: