How can I set a specific theme for a specific QT application? Globally I used a dark theme but for some applications I want to use the default theme of Ubuntu 16.04 (Ambiance). This is for a specific QT application.
I tried these commands inside my spreadsheet.desktop
Exec=env GTK2_RC_FILES=/usr/share/themes/Ambiance/gtk-2.0/gtkrc /usr/bin/et
or
Exec=env GTK2_RC_FILES=$HOME/.themes/Ambiance/gtk-2.0/gtkrc /usr/bin/et
or
Exec=env GTK_THEME=Ambiance:Default /usr/bin/et
But none worked.
Yes, you can do so using
QT_STYLE_OVERRIDE
environment variable.The syntax is like this
Here you're using
Breeze
theme for konsole application. GTK theme names should also work. I've tested this under KDE withadwaita
(gtk theme) andBreeze
(KDE theme) names. My original environment theme was set to Oxygen.Note that, though it will override the styles of the controls, the Window decoration (which draws the titlebar and close,minimize buttons) won't change.