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

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10.1, 5.13.0
    • None
    • Win10
    • 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. untitled.zip
          5 kB
        2. qtdiag.txt
          7 kB
        3. qtbug69711.zip
          2 kB
        4. qtbug69711_widget.zip
          1 kB
        5. qtbug69711_qml.zip
          2 kB
        6. qtbug69711_qml.zip
          2 kB
        7. qtbug69711_log.txt
          20 kB
        8. qtbug69711_511_diag.diff
          2 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-69711
          # Subject Branch Project Status CR V

          Activity

            People

              liaqi Liang Qi
              surka surka
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change