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

QScreen availableSize wrong - HighDPI

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: