Screen.pixelDensity is incorrect on all devices
Bug #1504293 reported by
Olivier Tilloy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
kevin gunn | ||
qtubuntu (Ubuntu) |
Fix Released
|
High
|
Gerry Boland |
Bug Description
I’m testing the Screen.pixelDensity attached property (http://
I had a quick look at how this is implemented in QtQuick, and it calls into QScreen:
For reference, I want to use that property to calculate the physical size of the screen, as a heuristic to determine the most suitable form factor.
Related branches
lp:~osomon/qtubuntu/ubuntuscreen-physicalsize
- Gerry Boland (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 47 lines (+7/-2)2 files modifiedsrc/ubuntumirclient/screen.cpp (+4/-1)
src/ubuntumirclient/screen.h (+3/-1)
Changed in qtubuntu: | |
status: | New → Triaged |
Changed in qtubuntu: | |
assignee: | nobody → Olivier Tilloy (osomon) |
status: | Triaged → In Progress |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in qtubuntu: | |
status: | In Progress → Fix Released |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
no longer affects: | qtubuntu |
To post a comment you must log in.
With the linked branch, I’m getting correct pixel density values for 3 devices:
arale: 19.104950495049504 px/mm
krillin: 9.48931735278791 px/mm
flo: 12.673405367723944 px/mm