Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-15760

Default Dpi Scale Factor breaks UI in Windows

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • QDS 4.8.0
    • User Experience
    • None
    • Windows

      For years Qt Creator and QDS UIs are broken for me when using displays with different scales/resolutions. Menus and sub-menus on wrong position, text that doesn't fit, buttons with incorrect size and so on...

      While investigating the issue to try to create a reproducer, I came across this code: 

      Qt::HighDpiScaleFactorRoundingPolicy StyleHelper::defaultHighDpiScaleFactorRoundingPolicy()
      {
          return HostOsInfo::isMacHost() ? Qt::HighDpiScaleFactorRoundingPolicy::Unset
                                         : Qt::HighDpiScaleFactorRoundingPolicy::Round;
      }
       

      Setting  Qt::HighDpiScaleFactorRoundingPolicy::Round in a simple Qt application gives the same problem I was seeing in Qt Creator and Design Studio.

      Unfortunately, this is the default setting in Qt Design Studio, and is not easing to find, but it is available in the configuration options.

      My proposal is to have  Qt::HighDpiScaleFactorRoundingPolicy::Unset as default on Qt Design Studio. Or make it easier to quick find this settings and improve documentation around it.

        1. image-2025-08-28-13-23-33-901.png
          51 kB
          Maycon Stamboroski
        2. image-2025-08-28-13-25-08-972.png
          479 kB
          Maycon Stamboroski
        3. image-2025-08-28-13-25-44-475.png
          40 kB
          Maycon Stamboroski
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thohartm Thomas Hartmann
            mastambo Maycon Stamboroski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes