[Interest] How to detect a HiDPI display with Qt?

Vadim Peretokin vperetokin at gmail.com
Mon Mar 18 17:59:36 CET 2019


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 returns
1 for a display that is 3840x2160.

Has anyone got hints on how to do this successfully?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190318/61da1f9e/attachment.html>


More information about the Interest mailing list