imported>Handy |
imported>Handy |
Line 19: |
Line 19: |
| =How do you do it?= | | =How do you do it?= |
|
| |
|
| ==For root & all users==
| | 1) Install qt5-styleplugins and qt5ct |
| | | 2) Set environment variable in /etc/environment: QT_QPA_PLATFORMTHEME=qt5ct |
| As root, create '''/etc/profile.d/qt.style.overide.sh'''
| | 3) Restart the system |
| | | 4) Start qt5ct with sudo rights (very important) and select gtk2 |
| To do that you will need to start your favourite text editor as ''root'' .
| |
| | |
| You can achieve this by using the following command at the terminal '''$''' prompt (swap '''medit''' to the text editor of your choice):
| |
| | |
| sudo medit /etc/profile.d/qt.style.overide.sh
| |
| | |
| Then copy the following into your text editor's new empty file:
| |
| | |
| ## Following was created to make Qt app's use GTK+
| |
| ## font & theme settings:
| |
|
| |
| export QT_STYLE_OVERRIDE='gtk2'
| |
|
| |
| '''Save''' the file & '''reboot'''.
| |
| <br clear="all"/>
| |
| | |
| ==For a user account==
| |
| | |
| Enter the following into ~/.xinitrc
| |
|
| |
| export QT_STYLE_OVERRIDE='gtk2'
| |
|
| |
|
| <br clear="all"/> | | <br clear="all"/> |