openframeworks / openframeworks/openFrameworks

QT Creator compiled app : wrong behaviour on retina displays

Open
#5,167 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

macOS qtcreator
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.