Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28499

UI fonts are rendered too big

    XMLWordPrintable

Details

    • Windows

    Description

      On my Windows 11 22H2 machine with 125% system scaling the UI of Qt Creator uses fonts which are rendered too big.

      This was not happening with Qt 6.4.0

      Workaround: I've compiled Qt 6.4.1 with the fix form Qt 6.4.2 and attached the qwindows.dll binary to this bugreport. Just replace the installed version from c:\Qt\qtcreator-9.0.0\bin\plugins\platforms\qwindows.dll and this problem goes away!

      Second workaround: Another solution is to use a fonts.css and start Qt Creator as: qtcreator -stylesheet fonts.css
      The following fonts.css made the UI font size normal again:

      QWidget
      {
          font: 9pt;
      } 

      Third workaround: Before the QApplication is instantiated this could be called.

          QApplication::setDesktopSettingsAware(false);
      

      However, then we might have other issues, related to themeing, which would need to be tackled. Perhaps not worth it for a single patch version of Qt which certainly won't be much used on Windows.

      Attachments

        1. qtcreator-9.0.0-windows-125percent.png
          341 kB
          Cristian Adam
        2. qtcreator-9.0.0-windows-125percent.txt
          12 kB
          Cristian Adam
        3. Snipaste_2022-11-25_10-01-43.png
          593 kB
          Huanbo Tu
        4. Qt Creator 9.0 Huge Fonts.png
          274 kB
          John Remenyi
        5. qwindows.dll
          785 kB
          Cristian Adam

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              con Eike Ziller
              cadam Cristian Adam
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes