Fix QT Apps scaling issue on hidpi screens on Ubuntu

On my 5k screen, all QT apps look very tiny, such as keepassxc and Virtualbox.

The best solution I found was adding the following to your .profile to autoscale at a ratio of 2 (you can change it to your preference):

export QT_SCALE_FACTOR=2

Set to 2 because my display settings are set to 2

Log out and back in, and there you go!

Tested on Ubuntu 18.10

Enjoy!

Sources: https://unix.stackexchange.com/questions/433385/scaling-hidpi-issue-for-qt5-applications-under-gnome

About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Linux and tagged , , , , . Bookmark the permalink.

2 Responses to Fix QT Apps scaling issue on hidpi screens on Ubuntu

  1. Sinasofa says:

    Thanks for sharing. The trick did fix some displaying issues, but not the scaling though! Are you setting the two screens to the same resolution?

    Like

    • SoCRaT says:

      Actually my screens are not at the same resolution, one is 4k and the other is 5k. In general, this fixes only for QT based apps.

      Kind Regards,

      Ahmad Amr

      On Tue, Jan 22, 2019, 9:23 AM Just Some Techie Notes!

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s