View previous topic :: View next topic |
Author |
Message |
lilrc n00b

Joined: 23 Sep 2012 Posts: 19 Location: Sweden
|
Posted: Sat May 02, 2015 7:30 am Post subject: [SOLVED] QT_STYLE_OVERRIDE is not effective |
|
|
When I run pcmanfm-qt the default gtkstyle theme from qt4 is not used. If I do this
Code: | pcmanfm-qt -style gtk |
the gtkstyle theme is used as expected, but if I do this (as suggested by [1])
Code: | QT_STYLE_OVERRIDE=gtk pcmanfm-qt |
gtkstyle is not used.
What am I doing wrong?
[1] http://doc.qt.io/qt-5/qapplication.html#QApplication
Last edited by lilrc on Sat May 02, 2015 3:13 pm; edited 1 time in total |
|
Back to top |
|
 |
franzf Advocate


Joined: 29 Mar 2005 Posts: 4547
|
|
Back to top |
|
 |
lilrc n00b

Joined: 23 Sep 2012 Posts: 19 Location: Sweden
|
Posted: Sat May 02, 2015 12:19 pm Post subject: |
|
|
Ah, thank you for your quick and informative answer! Is there another way to set the preferred QT5 style for all applications? Otherwise I will have to file a bug upstream. |
|
Back to top |
|
 |
franzf Advocate


Joined: 29 Mar 2005 Posts: 4547
|
Posted: Sat May 02, 2015 2:24 pm Post subject: |
|
|
Could you test this workaround:
Create a file ~/.config/kdeglobals with the following content:
Code: | [KDE]
widgetStyle=gtk |
Then do
Code: | export QT_QPA_PLATFORMTHEME=kde |
and pcmanfm-qt runs with the gtk theme.
There is that one downside: You have to save your theme in a config file instead of directly exporting it... (and remember it's a kde config file...) |
|
Back to top |
|
 |
lilrc n00b

Joined: 23 Sep 2012 Posts: 19 Location: Sweden
|
Posted: Sat May 02, 2015 2:53 pm Post subject: |
|
|
franzf wrote: | Could you test this workaround:
Create a file ~/.config/kdeglobals with the following content:
Code: | [KDE]
widgetStyle=gtk |
Then do
Code: | export QT_QPA_PLATFORMTHEME=kde |
and pcmanfm-qt runs with the gtk theme.
There is that one downside: You have to save your theme in a config file instead of directly exporting it... (and remember it's a kde config file...) |
Unfortunately that does not work. |
|
Back to top |
|
 |
lilrc n00b

Joined: 23 Sep 2012 Posts: 19 Location: Sweden
|
Posted: Sat May 02, 2015 3:12 pm Post subject: [SOLVED] QT_STYLE_OVERRIDE is not effective |
|
|
I found it!
Code: | export QT_QPA_PLATFORMTHEME=gtk2 |
did the trick! Thank you for your help pointing me to that variable!  |
|
Back to top |
|
 |
kenny_w Tux's lil' helper

Joined: 26 Nov 2017 Posts: 83 Location: Toronto, Canada
|
Posted: Fri Dec 15, 2017 1:50 am Post subject: |
|
|
Hey guys how would I do this on LXDE? I'm really sorry to necro-bump an old-ish post but I'm really stumped, I've added an /etc/environment and /etc/profile.d/qt5ct.sh entries but it still won't work. I'm trying to set qt5ct so I can config it with a GUI, but I always set it to gtk2.
I tried making an entry like you guys said but it still tells me the environment variable isn't set... this is starting to really feel hopeless
edit: I've given up, so don't bother trying to help. nevermind. sorry. |
|
Back to top |
|
 |
|