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

Linux: Qt 5.6: Qt Assistant UI scaled incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.1
    • 5.6.0
    • Tools: Assistant
    • None
    • Manjaro Linux (Arch derivative)
      Xfce4
    • e33532e048fa12ee32429ca83ee31aa8f065147d (qttools/5.6, 15.4.2016. 5.6.1)

    Description

      Almost all UI elements are scaled incorrectly, i.e. appear way too large, rendering Qt Assistant unusable starting with 5.6.0. Commenting/removing the following line at the beginning of the main function fixes the issue:

      src/assistant/main.cpp
          QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
      

      It appears like this is not only a bug in Assistant, but Qt failing to recognise the correct DPI. Assistant just seems to be the only qt-tool that enables auto scaling by default.

      Screens: 1, High DPI scaling: inactive
      # 0 "eDP1" Depth: 24 Primary: yes
        Geometry: 1920x1080+0+0 Available: 1920x1055+0+0
        Physical size: 290x170 mm  Refresh: 60 Hz Power state: 0
        Physical DPI: 168.166,161.365 Logical DPI: 101,101 Subpixel_None
        DevicePixelRatio: 1 Pixel density: 2
        Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
      

      Attachments

        1. assistant-hidpi.png
          137 kB
          Lukas
        2. assistant-no-hidpi.png
          121 kB
          Lukas
        3. qtbug-52318.png
          75 kB
          Shawn Rutledge
        4. qtbug-52318b.png
          110 kB
          Shawn Rutledge
        5. qtdiag.out
          4 kB
          Lukas

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              lukasw Lukas
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: