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

[REG 5.9->5.10] QWindow doesn't restore previously maximized state after calling showMinimized()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.10.1, 5.13.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Win10
    • Platform/s:
      Linux/X11, Windows

      Description

      After promoting Qt to 5.10.1, I found this issue. My application is a frameless window with custom minimize, maximize, close buttons. When I maximize the window, then minimize it, finally restore it by clicking the app icon on Windows' taskbar. The window doesn't restore maximized state.

      With Qt 5.9.3, it's OK.

      Attached an sample to reproduce the issue.

      1. Run the sample.
      2. Maximize the window.
      3. Click the minimize button in the center of the window.
      4. Restore the window by Windows taskbar.
      qtbug69711_qwin:
       "5.11.1 xcb" () 
      click to minimize
      slotWindowStateChanged Qt::WindowState(WindowNoState)
      slotWindowStateChanged Qt::WindowState(WindowNoState)
      slotWindowStateChanged Qt::WindowState(WindowMaximized)
      mousePressEvent about to call showMinimized() QFlags<Qt::WindowState>(WindowMaximized)
      slotWindowStateChanged Qt::WindowState(WindowMinimized)
      mousePressEvent after showMinimized: QFlags<Qt::WindowState>(WindowMinimized)
      slotWindowStateChanged Qt::WindowState(WindowMinimized)
      slotWindowStateChanged Qt::WindowState(WindowMinimized)
      slotWindowStateChanged Qt::WindowState(WindowNoState)
      

       

        Attachments

        1. qtbug69711_511_diag.diff
          2 kB
        2. qtbug69711_log.txt
          20 kB
        3. qtbug69711_qml.zip
          2 kB
        4. qtbug69711_qml.zip
          2 kB
        5. qtbug69711_widget.zip
          1 kB
        6. qtbug69711.zip
          2 kB
        7. qtdiag.txt
          7 kB
        8. untitled.zip
          5 kB

          Issue Links

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

            Activity

              People

              Assignee:
              liaqi Liang Qi
              Reporter:
              surka surka
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes