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

windows: FramelessWindowHint + WA_TranslucentBackground resize issue when moving across multiple screens

    XMLWordPrintable

Details

    • Windows

    Description

      I couldn't reproduce this in Qt 6, so this is probably Qt 5 only issue.

      This seems to happen only if WA_TranslucentBackground is set for frameless window.

      To reproduce:

      • 2 monitors, set primary at 125% and secondary at 150% scale (this seems to work best)
      • run the example
      • grab the window and move it between the screens multiple times (faster better)

      The window randomly starts to change size. Sometimes it reverts back to the previous size, but often it just becomes ever smaller or larger.

      It looks like when this happens there are is WM_SIZE event followed by QWindow::screenChanged(), another WM_SIZE followed by another screenChanged() call. After this there are Qt resize events being handled.

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes