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

Resizing a maximized window on Linux

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11

      Description

      When calling resize() on a maximized QMainWindow the window is resized correctly on Windows, but it is not resized on Linux.

      On Linux a workaround is remove maximized state flag before call resize():

      setWindowState(windowState() & ~Qt::WindowMaximized);

      But it is not acceptable, once that when I remove flag the "restore" icon is replaced by the "maximize" icon, while on Windows icon is not replaced (without removing flag manually, what is expected). I need the icon stay "restore" after the resize to allow the user to restore window size by itself.

      See the attached sample app, the expected behavior is like on Windows.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                paeglis Gatis Paeglis
                Reporter:
                lsouza Luis Henrique De Souza
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes