I'm writing a C++ graphical application using Qt 5.5.0 on OS X El Capitan on a Retina MacBook Pro. Text is pixelated throughout the application so I suspect that high DPI mode is not used. My Info.plist contains the following definition:
<key>NSHighResolutionCapable</key>
<true/>
How do I enable high resolution mode (especially for text rendering) in a Qt application on OS X?
You also need to call QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps)
just after creating QApplication
object to be able to use High DPI pixmaps. Read more here: http://doc.qt.io/qt-5/qpixmap.html#devicePixelRatio
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With