Set all Qt app's to use GTK+ font & theme settings

From Manjaro Linux
Revision as of 11:19, 12 December 2015 by Handy (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


This fix is particularly helpful for people that run 1080p or higher screen resolutions on largish monitors. As apart from making your QT app's use your GTK+ theme (colours & such) it will make them use your font settings. Which for me makes all the difference to my eyes, as I need to use large fonts.

How do you do it?

As root, create /etc/profile.d/

To do that you will need to start your favourite text editor in root mode. You can this by using sudo <your text editor's name> in the terminal (or however else you get your editor to create a new file as root).

Copy the following into your text editor's new empty file with this path & name:


## Following was created to make Qt app's use GTK+ 
## font & theme settings:


Save the file & reboot.


After saving the file & rebooting, I then, with trepidation, opened the Qt 5.5 program called PkgBrowser... It looked just like my other GTK+ app's on my Openbox system (there is no accounting for taste!). I was very happy.


Here is a picture of the Qt 5.5 PkgBrowser program open full screen on my 1080p Openbox (GTK2) box. It is using my custom dark theme & my large font settings. My eyes love it.


Following is a link to this page's forum counterpart where you can post any related feedback: [coming soon]