Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51111

QScreen availableSize wrong - HighDPI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 5.6.0 Beta
    • None
    • Android 5.1.1
      BlackBerry PRIV
      2560x1440 px
      544 ppi
    • Android

      while evaluating the qt.labs.controls and support of HighDPI there's probably an error.
      enabled scaling:
      QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
      then from
      qApp->primaryScreen()
      checked the sizes:
      size: 411 x 683
      same for virtual, geometry and virtual geometry
      also DevicePixelRatio is OK: 3.5
      all values for available Size, VirtualSize, Geometry, VirtualGeometry are wrong:
      5040 x 8064
      it seems the values were multiplied by DevicePixelRatio and not divided.
      doing the same without enabling HighDpiScaling all sizes and available sizes are correct.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sorvig Morten Sørvig
            ekkescorner Ekkehard
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes