Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.8.0
-
None
-
Mac 10.7.3 or latter.
Description
Qt GUI does not provide support for HiDPI. Changing the following methods in the QPaintDevice_mac.cpp file might be helpful and can be easily done by using QSysInfo at run time.
/*! \internal */ float qt_mac_defaultDpi_x() { // Mac OS X currently assumes things to be 72 dpi. // (see http://developer.apple.com/releasenotes/GraphicsImaging/RN-ResolutionIndependentUI/) // This may need to be re-worked as we go further in the resolution-independence stuff. return 72; } /*! \internal */ float qt_mac_defaultDpi_y() { // Mac OS X currently assumes things to be 72 dpi. // (see http://developer.apple.com/releasenotes/GraphicsImaging/RN-ResolutionIndependentUI/) // This may need to be re-worked as we go further in the resolution-independence stuff. return 72; }