openframeworks / openframeworks/openFrameworks
QT Creator compiled app : wrong behaviour on retina displays
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
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 :-/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The generated application plist is configured in libs/openFrameworksCompiled/project/qtcreator/modules/of/of.qbs at lines 564 and 569. Inspect those entries and compare the generated plist with the Xcode behavior described in the issue; the work is done when Retina applications have correct scaling and mouse coordinates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, macos
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100