touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #114611
[Bug 1504293] Re: Screen.pixelDensity is incorrect on all devices
@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
** Also affects: qtubuntu (Ubuntu)
Importance: Undecided
Status: New
** Also affects: canonical-devices-system-image
Importance: Undecided
Status: New
** Changed in: canonical-devices-system-image
Assignee: (unassigned) => kevin gunn (kgunn72)
** Changed in: canonical-devices-system-image
Milestone: None => ww46-2015
** Changed in: canonical-devices-system-image
Importance: Undecided => High
** Changed in: canonical-devices-system-image
Status: New => In Progress
** Changed in: qtubuntu (Ubuntu)
Assignee: (unassigned) => kevin gunn (kgunn72)
** Changed in: qtubuntu (Ubuntu)
Importance: Undecided => High
** Changed in: qtubuntu (Ubuntu)
Status: New => In Progress
** Changed in: qtubuntu (Ubuntu)
Assignee: kevin gunn (kgunn72) => Gerry Boland (gerboland)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtubuntu in Ubuntu.
https://bugs.launchpad.net/bugs/1504293
Title:
Screen.pixelDensity is incorrect on all devices
Status in Canonical System Image:
In Progress
Status in qtubuntu:
In Progress
Status in qtubuntu package in Ubuntu:
In Progress
Bug description:
I’m testing the Screen.pixelDensity attached property
(http://doc.qt.io/qt-5/qml-qtquick-window-screen.html#pixelDensity-
attached-prop) in a QML app on various devices (krillin, arale, flo),
and the screen always reports the same incorrect value: 3.93701 px/mm.
I had a quick look at how this is implemented in QtQuick, and it calls
into QScreen::physicalDotsPerInch(), which itself calls into
QPlatformScreen::physicalSize(), which doesn’t appear to be
reimplemented in QtUbuntu (UbuntuScreen).
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1504293/+subscriptions