Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiDPI not scaling correctly #54

Closed
WMRamadan opened this issue Jun 4, 2021 · 4 comments
Closed

HiDPI not scaling correctly #54

WMRamadan opened this issue Jun 4, 2021 · 4 comments
Labels
bug Something isn't working unconfirmed

Comments

@WMRamadan
Copy link
Contributor

  • Linux-distro (kernel version): Pop OS 20.10 Kernel 5.11.0-7614-generic
  • Desktop Environment (KDE/GNOME etc.): GNOME 3.38.3 (X11)
  • Qt Version:
  • KDiskMark Version: 2.2.0
  • FIO Version: fio-3.16

Description:

KDiskMark display does not scale using 4K (3840x2160) at 150% scale
Screenshot from 2021-06-04 17-32-28

Steps To Reproduce:

Download deb package from releases github link

@WMRamadan WMRamadan added bug Something isn't working unconfirmed labels Jun 4, 2021
@JonMagon
Copy link
Owner

JonMagon commented Jun 4, 2021

QT_AUTO_SCREEN_SCALE_FACTOR=1 kdiskmark

@WMRamadan
Copy link
Contributor Author

WMRamadan commented Jun 4, 2021

QT_AUTO_SCREEN_SCALE_FACTOR=1 kdiskmark

Yes this works, but it should be auto-scaled at the start of the application from GUI launch. Or at least have the setting available from within the application to launch in auto-scaled mode.

@JonMagon
Copy link
Owner

JonMagon commented Jun 4, 2021 via email

@WMRamadan
Copy link
Contributor Author

WMRamadan commented Jun 4, 2021

There is no other way to make a qt application work properly on hidpi.

I believe Qt 6 supports this:
https://doc.qt.io/qt-6/highdpi.html

Also the QT_ENABLE_HIGHDPI_SCALING environment variable, introduced in Qt 5.14, enables automatic scaling based on the pixel density of the monitor. Replaces QT_AUTO_SCREEN_SCALE_FACTOR.
https://doc.qt.io/qt-5/highdpi.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants