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

Qt::AA_EnableHighDpiScaling ruins font (/application) when DPR = 1.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.4
    • None
    • Windows

    Description

      AA_EnableHighDpiScalingThe font can get way too small on dual system screens when DPR is 1.
      Steps to reproduce:

      1) Have a 2 screen system with a 4K High DPI primary screen (that will get DPR=2) and another screen with a lower resolution (maybe just set lower) that will will have DPR=1.

      2) Run the attached example and notice that the dialog looks good on the 4K screen, but nearly useless on the DPR = 1 screen.

      Illustration:

      Compare Window to a native Windows Explorer

      This issue seems to effect Qt Creator. Furthermore the whole point in AA_EnableHighDpiScaling should be that it knows to scale on High DPI screens, but still can make the dialog look ok when DPR = 1 (and not require that the primary screen is the one with DPR 1 which would be unnatural).

      Picture of the two screens (+ Qt Creator):

      Attachments

        1. 20190913_143151.jpg
          20190913_143151.jpg
          2.90 MB
        2. image-2019-09-13-14-20-51-928.png
          image-2019-09-13-14-20-51-928.png
          86 kB
        3. image-2019-09-13-14-21-01-069.png
          image-2019-09-13-14-21-01-069.png
          317 kB
        4. main.cpp
          1 kB
        5. qtbug78729.zip
          2 kB
        6. qtdiag.txt
          7 kB
        7. wrongFontSize.pro
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thorbjornlm Thorbjørn Martsum
            tmartsum Thorbjørn Lund Martsum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes