openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.98k stars 2.55k forks source link

QT Creator compiled app : wrong behaviour on retina displays #5167

Open cgimenez opened 8 years ago

cgimenez commented 8 years ago

Application .plist generated by Qt Creator is not correct on OSX computers using Mac Retina displays making the app unusable on this kind of device (everything is scaled 4x times down, mouse clicks coordinates are wrong making UI unresponsive, ...)

As XCode project does, Qt app generation should include "NSHighResolutionCapable" in the application's plist file.

https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworksCompiled/project/qtcreator/modules/of/of.qbs#L564 So, line 564 (in master) is bundle.infoPlist: ({"CFBundleIconFile":"icon.icns", "NSHighResolutionCapable":false}) instead of bundle.infoPlist: ({"CFBundleIconFile":"icon.icns")

Same goes for line 569 (in master)

Sorry, I don't know how to make a PR :-/

cgimenez commented 8 years ago

Ideally, it would be fine if this setting could be "per project", because one can have apps running on 4k displays for which the NSHighResolutionCapable must be TRUE. In the meantime having examples working out of the box of Retinas is a first step in the right direction...

bakercp commented 7 years ago

Please submit a pull request. If you don't know how, I highly recommend this great tutorial!

https://www.youtube.com/watch?v=_NrSWLQsDL4