[Interest] Physical Display Size on Android

Thiago Macieira thiago.macieira at intel.com
Tue Sep 17 15:42:15 CEST 2013


On terça-feira, 17 de setembro de 2013 11:01:15, Rutledge Shawn wrote:
> On 17 Sep 2013, at 10:05 AM, noname wrote:
> > Hi everyone,
> > 
> > using Qt 5.1.1, is there a more accurate way to determine the physical
> > display size or the DPI of a mobile android device, than using
> > QScreen::physicalSize or QScreen::physicalDotsPerInch(X/Y)? Those values
> > aren't correct on most of our testing devices.
> > Example: One device has a ~218dpi display, but
> > QScreen::physicalDotsPerInch (also QScreen::physicalDotsPerInchX and
> > QScreen::physicalDotsPerInchY) returns ~160dpi.
> > QScreen::logicalDotsPerInch returns 150.
> > Then again, on some devices the correct values are reported and
> > everything works as it should.
> 
> IMO that sounds like a bug; logical can be different than physical, but
> physical resolution should be correct.  Please file a bug at
> bugreports.qt-project.org and give details about which devices have it
> correct and which don't, which SDK and NDK and API versions you are using,
> etc.

Note that the bug might be in the device itself. It's not uncommon for screens 
to lie about their physical sizes in their EDID.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130917/6a416306/attachment.sig>


More information about the Interest mailing list