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

HighDPI: Wrong resizeEvents on Dockwidgets with dual monitor setup.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Dual monitor setup with different monitor scalings (e.g. 150%, 200%)
    • Platform/s:
      Windows

      Description

      To reproduce this bug:

      • enable high dpi scaling
        QApplication::setAttribute (Qt::AA_EnableHighDpiScaling, true);
        
      • set highdpi scalefactorroundingpolicy to Passthrough
        QApplication::setHighDpiScaleFactorRoundingPolicy (Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
        
      • Dual monitor setup with different scalings (e.g. 150%, 200%)

      Now, if I move a dockwidget/floating toolbar from one screen to the other, it recieves multiple resize events when crossing screens, leading to extremely large/small widgets and eventually crashing the application.

        Attachments

        1. after.jpg
          after.jpg
          6.48 MB
        2. before.jpg
          before.jpg
          6.36 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            jnieswand Jacob Nieswand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes