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

Improve UI Scalability (Meta Bug)

    XMLWordPrintable

Details

    Description

      Collect tasks and bugs that are related to improving UI scalability.

      B Proposal B): Do it all in the platform plugin, "emulate what Mac does"

      • Only allow integer scaling ratio
      • rely on font point sizes/font metrics for in-between DPI values

      B.1 Pending changes

      B.2 Remaining issues:

      • How to opt in, QApplication attributes, etc.
      • Adapt styles

      2 Other changes (mostly independent of implementation):

      Ooops-commits:

      Remaining issues independent of approach:

      • Important : What do we do with Qt Designer (and come to think of, Qt Creator). If we activate scaling by default, it can be quite misleading. Should it get an unscaled preview. If so, we might have to do stuff by window (Potential workaround: Fork off a sub-process with UiLoader for preview).
      • Is it possible to completely adapt the Vista style to DPR scaling at all. Ideally, cached pixmaps should be created with DPR=2 and then correctly rendered. Problem is that it arbitrarily clips and transform with obscure values...
      • Polish & example from QTBUG-38993 as manual test / merge with tests/manual high dpi?

      Submitted changes for reference

      QPA

      Style fixes

      Widgets

      Documentation

      Other

      A Proposal A) for reference: Introduce a scaling layer between QPA and QWindow (aka Morten's patch series)

      Design considerations: https://docs.google.com/document/d/1d2ymxj-bfWhM1Ssr4ybLFD4nxp4k8Ozl0IAUbVx-ino/pub

      A.1 Pending changes (dependent patch chain) adding a scaling layer to Qt to aid existing applications:

      A.2 Related changes:

      A.3 Remaining issues:

      • How to best automatically apply scaling (should be opt-in)
      • Native widgets are messed up (use option -n to example from qtbug38993)
      • Windows: Some Style items are then too big?
      • QML Fonts on Windows not looking good

      For reference: Allans's patch

      Attachments

        Issue Links

          Activity

            People

              docteam Qt Documentation Team
              leenam Leena Miettinen
              Votes:
              25 Vote for this issue
              Watchers:
              37 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: