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

Top level QWidget reappears unexpectedly after display setting changes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.3
    • GUI: Window management
    • None
    • Windows

    Description

      We have a use case in our application where two windows are shown in a toggle-like manner - displaying one window should hide the other window and vice versa. However, we've detected an issue where a supposedly hidden window reappears when we switch to the other window and alter the display settings on the current monitor to either a higher or lower resolution.

      Steps to reproduce:

      1. Open the application.
      2. Maximize the application window and switch to the other window.
      3. Change the current monitor's display settings to a higher or lower resolution.
      4. Note the fatal error message.

      Expected Result:

      The originally displayed window should remain hidden when display settings are altered.

      Actual Result:

      The supposedly hidden window reappears when the display settings are changed.

      Impact:

      This is pretty critical issue for our product as we end up seeing a supposedly hidden window and could cause stability issue. While its easier to detect this programmatically (by listening to WindowActivate), solution for this would involve a considerable amount of hack thats not scalable in long run. Hence needed an official fix from Qt.

      Note:

      • This issue doesn't happen on macOS in our testing.
      • This issue could also happen when waking the system from sleep while the window is in an unmaximized window state. However, this use case is reproducible only on certain machines. 
      • This was tested on Windows11.
      • qtbug-123929.zipattached to reproduce the issue.

      Attachments

        1. qtbug-123929.mov
          4.33 MB
        2. qtbug-123929.zip
          2 kB

        Issue Links

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

          Activity

            People

              owolff Oliver Wolff
              kandass1 Senthil Kannan Kandaswamy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes