[MacPorts] #36410: Qt applications are blurry on MBP Retina

MacPorts noreply at macports.org
Thu Nov 29 08:41:22 PST 2012


#36410: Qt applications are blurry on MBP Retina
----------------------------+-------------------------
  Reporter:  mail.pourri@…  |      Owner:  michaelld@…
      Type:  enhancement    |     Status:  reopened
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:
      Port:  qt4-mac        |
----------------------------+-------------------------
Changes (by nils.carlson@…):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 This can in fact be fixed (mostly, not icons and stuff) on the macports
 side. I did it on my wifes macbook pro after a bunch of reading on digia's
 webpage. The problem is that the .app Info.plist must contain the
 following lines under the <dict> tag:

         <key>NSPrincipalClass</key>

         <string>NSApplication</string>

         <key>NSHighResolutionCapable</key>

         <true/>

 It is possible to add these in an existing .app dir and then make a copy
 (triggering mac os to do some caching I'm guessing) in order to fix these.
 I fixed it for spyder by opening the
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Info.plist,
 adding the lintes

 like so (a little context included):

 <dict>(context)

         <key>NSPrincipalClass</key>

         <string>NSApplication</string>

         <key>NSHighResolutionCapable</key>

        <true/>

        <key>CFBundleDevelopmentRegion</key>(context)


 making a copy (in the finder by dragging, don't know if cp -r will work)
 and then renaming the original to python.app to python.app.old in the
 finder and renaming the copy to python.app . Starting spyder (a pyqt
 application) from the terminal now launches it in high-res.

 So just fix all the Info.plist's and this will fix most things...

 A link to the relevant discussions on the qt-project: https://bugreports
 .qt-project.org/browse/QTBUG-23870

-- 
Ticket URL: <https://trac.macports.org/ticket/36410#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list