Screen.pixelDensity is incorrect on all devices
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
High
|
kevin gunn | ||
| | qtubuntu (Ubuntu) |
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
- Gerry Boland: Approve on 2015-10-09
- PS Jenkins bot: Approve (continuous-integration) on 2015-10-09
-
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 |
| Olivier Tilloy (osomon) wrote : | #1 |
| Bill Filler (bfiller) wrote : | #2 |
@kgunn, grayback,
can we get a landing on this - looks like MR has been approved already
we need this fix for a browser bug we have
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → kevin gunn (kgunn72) |
| milestone: | none → ww46-2015 |
| importance: | Undecided → High |
| status: | New → In Progress |
| Changed in qtubuntu (Ubuntu): | |
| assignee: | nobody → kevin gunn (kgunn72) |
| importance: | Undecided → High |
| status: | New → In Progress |
| assignee: | kevin gunn (kgunn72) → Gerry Boland (gerboland) |
| Changed in canonical-devices-system-image: | |
| status: | In Progress → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #3 |
This bug was fixed in the package qtubuntu - 0.62+16.
---------------
qtubuntu (0.62+16.
[ Nick Dedekind ]
* Support server->client visibility change to stop rendering
(lp:#1475678) (LP: #1475678)
[ Olivier Tilloy ]
* Re-implement QPlatformScreen
-- Michał Sawicz <email address hidden> Thu, 05 Nov 2015 16:56:48 +0000
| Changed in qtubuntu (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in qtubuntu: | |
| status: | In Progress → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |
| no longer affects: | qtubuntu |


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