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

DockWidgets with custom title bar resize when moving between screens if AA_EnableHighDpiScaling is set

    XMLWordPrintable

Details

    • Windows

    Description

      1. Have two 4K screens in Extend mode
      2. Extract the attached project and build and run (modified DockWidget example project)
      3. Undock the dockwidget then drag it across to the other screen
      4. The widget resizes, sometimes dramatically, as it crosses the screen boundary.

      It's not always consistent how much it changes, or if it gets bigger or smaller. I have had crashes caused by this as the widget got too big. The last crash seemed to be a result of the widget having the following size {width = 12933, height = 49152}.

      This behaviour only seems to occur when the DockWidget has a custom title bar widget set, and the AA_EnableHighDpiScaling set.

      Attachments

        1. dockwidget_resized_on_screen_change.zip
          5 kB
        2. qtdiag.txt
          22 kB
        3. screencap.gif
          screencap.gif
          892 kB

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            floofy.kh Kyle Hewitt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: