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

Qt 6 font scaling problems on Windows 10

    XMLWordPrintable

Details

    • Windows

    Description

      QT 6 doesn't correctly follow the Windows 10 display scaling. Menu fonts appear to scale correctly but widget fonts do not.

      Screenshots and a sample project are attached. The screenshots were taken with the sample project compiled with QT 6.4.0 from the commercial maintenance app, and the sample project recompiled and rerun AFTER each time the windows scaling was changed.

      Poor display scaling on Windows has been a longstanding problem. With QT5, I had managed to get something to work using a combination of SetProcessDPIAware(); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); and manual scaling of button sizes using QScreen::logicalDotsPerInchX() and QScreen::devicePixelRatio(). However QT6 doesn't respond in any logical way to any of these settings, hence this bug report.

      I'm a QT licensee who needs this scaling to work, however since I'm on a "Startup" license, I don't have access to direct QT support.

      Attachments

        1. HighDPITesting.zip
          2 kB
        2. QT4_HighDPI_100pc.PNG
          QT4_HighDPI_100pc.PNG
          8 kB
        3. QT4_HighDPI_150pc.PNG
          QT4_HighDPI_150pc.PNG
          11 kB
        4. QT4_HighDPI_200pc.PNG
          QT4_HighDPI_200pc.PNG
          13 kB

        Activity

          People

            sorvig Morten Sørvig
            mjsmithers Michael Smithers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: