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

window incorrectly shows resize cursor after being closed and restored programmatically

    XMLWordPrintable

Details

    • Windows

    Description

      The sequence reproduces always. A minimum sample and a video are attached.
      1. Close the window. 
      That is by calling QWidget::close, pressing alt+f4 or clicking the native close button.
      QWidget::hide will not do. The underlying native window has to perish, but the Qt widget object has to be the same from here on.
      2. After some time reopen the window.
      The example just sets up a timer. In real world that could be in response to some business logic event, or by clicking a tray icon, or by restoring a single instance application.
      3. Make sure that when the window shows, it immediately and directly appears under the cursor.
      Since the geometry and the position of the window is reset after close(), just put the cursor at the middle of the screen.
      If the cursor is outside the window when it restores, the error may or may not occur, as demonstrated in the video.
      4. Hover a window edge with the mouse.

       

      I also think this is a regression. I was not able to reproduce with 5.12.8.

      Attachments

        1. test_restore.zip
          0.8 kB
          danilshkodin
        2. 2023-04-18_12-47-13.mkv
          511 kB
          danilshkodin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            danilshkodin danilshkodin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes