← Back to team overview

touch-packages team mailing list archive

[Bug 1504293] Re: Screen.pixelDensity is incorrect on all devices

 

This bug was fixed in the package qtubuntu -
0.62+16.04.20151105-0ubuntu1

---------------
qtubuntu (0.62+16.04.20151105-0ubuntu1) xenial; urgency=medium

  [ Nick Dedekind ]
  * Support server->client visibility change to stop rendering
    (lp:#1475678) (LP: #1475678)

  [ Olivier Tilloy ]
  * Re-implement QPlatformScreen::physicalSize(). (LP: #1504293)

 -- Michał Sawicz <michal.sawicz@xxxxxxxxxxxxx>  Thu, 05 Nov 2015
16:56:48 +0000

** Changed in: qtubuntu (Ubuntu)
       Status: In Progress => Fix Released

-- 
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:
  Fix Committed
Status in qtubuntu:
  Fix Released
Status in qtubuntu package in Ubuntu:
  Fix Released

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