Qt 6.11 is out! See what's new in the release
blog
How to detect a HiDPI display?
-
I'm not clear on how to detect if a display is HiDPI with Qt. I've tried
QApplication.desktop()->screen()->devicePixelRatio()but even that returns1for a display that is 3840x2160.Has anyone got hints on how to do this successfully?
@Vadi2
I have no experience with HiDPI, but maybe you find some information here.Maybe these functions helps: https://doc.qt.io/qt-5/qpaintdevice.html#physicalDpiX and https://doc.qt.io/qt-5/qpaintdevice.html#physicalDpiY