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

Resizing a maximized window on Linux

XMLWordPrintable

    • Linux/X11

      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.

        1. WindowResize.zip
          3 kB
          Luis Henrique De Souza
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes