How I fixed, "Qt apps are too small in GNOME"

I am a GNOME user, but I still use fantastic apps written using the Qt framework. However in my HiDPI screen (retina screen for macOS people) the Qt apps were rendering too small. They were not applying the scaling factor I requested in my GNOME settings.

Scale factor in GNOME

In order for Qt apps to have the correct size I created a script /etc/profile.d/hidpi.sh. I created it by executing:

1
sudo echo 'export QT_AUTO_SCREEN_SCALE_FACTOR=1' >> /etc/profile.d/hidpi.sh

After a computer restart, my Qt applications were showing correctly as usual. I did this in my Fedora 33 Workstation.

👋 Subscribe!

If you like this content, you might consider subscribing to this site's RSS feed. This is the best way to stay up to date with new content on the site. If you don't know how to subscribe, you can check this tutorial.

Load Comments