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

Investigate UI rendering at fractional scale factors

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • GUI: High-DPI
    • None
    • All

      We're looking to make Qt 6 use the native UI scale directly (without rounding), which means that Qt GUIs may be rendered at e.g. 1.25x and 1.75x.

      This change was implemented in https://codereview.qt-project.org/c/qt/qtbase/+/273956 .

      This requires that Qt applications are actually usable at fractional scale factors, and that any visual artifacts are not too jarring. Running at an integer scale factor will give the best visual results, which is something we should consider pointing out in the documentation.

      App developers can enable rounding using  the QGuiApplication::setHighDpiScaleFactorRoundingPolicy() API.

      Test cases:

      • Qt Quick Controls 2 (should be OK)
      • Qt Wigets styles: (examples/widgets/gallery)
        • Fusion style at 1.25x:
      • Some missing frame lines, otherwise OK.
        • Vista style

        1. widget-gallery-1.25x.png
          widget-gallery-1.25x.png
          177 kB
        2. widget-gallery-vista-125x.jpg
          widget-gallery-vista-125x.jpg
          130 kB
        3. widget-gallery-1.25x-downscale.png
          widget-gallery-1.25x-downscale.png
          170 kB
        4. image-2020-09-16-11-51-35-698.png
          image-2020-09-16-11-51-35-698.png
          1.83 MB
        5. ce_shapedframe-noclip.png
          ce_shapedframe-noclip.png
          453 kB
        6. ce_shapedframe-clip.png
          ce_shapedframe-clip.png
          446 kB
        For Gerrit Dashboard: QTBUG-86344
        # Subject Branch Project Status CR V

            sorvig Morten Sørvig
            sorvig Morten Sørvig
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            14 Vote for this issue
            Watchers:
            27 Start watching this issue

              Created:
              Updated: