Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cgimenez opened this issue Jul 20, 2016 · 2 comments
Open

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

cgimenez opened this issue Jul 20, 2016 · 2 comments

Comments

@cgimenez
Copy link

cgimenez commented Jul 20, 2016

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 cgimenez changed the title QT Creator compiled app : scale is wrong on retina displays QT Creator compiled app : wrong behaviour on retina displays Jul 20, 2016
@cgimenez
Copy link
Author

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
Copy link
Member

bakercp commented May 22, 2017

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants