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

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1, 5.15.2
    • Fix Version/s: None
    • Labels:
    • Environment:
      Windows. MSVC 16.8.5. High DPI.
    • Platform/s:
      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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes