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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10.1, 5.13.0
    • None
    • Win10
    • Linux/X11, Windows

      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)
      

       

        1. untitled.zip
          5 kB
          surka
        2. qtdiag.txt
          7 kB
          surka
        3. qtbug69711_qml.zip
          2 kB
          Friedemann Kleint
        4. qtbug69711.zip
          2 kB
          Friedemann Kleint
        5. qtbug69711_511_diag.diff
          2 kB
          Friedemann Kleint
        6. qtbug69711_log.txt
          20 kB
          Friedemann Kleint
        7. qtbug69711_widget.zip
          1 kB
          Friedemann Kleint
        8. qtbug69711_qml.zip
          2 kB
          Shveta Mittal
        For Gerrit Dashboard: QTBUG-69711
        # Subject Branch Project Status CR V

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

              Created:
              Updated:

                There is 1 open Gerrit change