qt4.8.6 with mac10.10-Qt applications are blurry on Retina
-
hi ,all!
my applications using Qt4.8.6 are not rendering correctly on a MacBookPro with Retina screen.After patch for qt4.8.6, the problem is still exsists. here is the patch, https://codereview.qt-project.org/#/c/54636/
-
i have fixed the info.plist of the qt application like so :
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>
<true/>Does someone have same problem? Thanks for your help!!
-
I recently did this with Qt5.4.1. I know Qt added a lot of high-resolution support in 5.4, and I'm not sure if this included changes for macosx. So, my experience may not match yours.
I had to add similar keys to my Info.plist
<key>NSPrincipalClass</key> <string>NSApplication</string> <key>NSHighResolutionCapable</key> <string>True</string>
IIRC, simply modifying the keys after the fact didn't work in my case (I think some type of caching occurs - see 5th comment as a reference). I had to rebuild my app with the new Info.plist before changes took place.