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

Adding FullScreen flag to windowState and removing it, removes Maximized flag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.10.0 Alpha
    • 5.6.0
    • Widgets: Main Window
    • None
    • Ubuntu, Windows
    • a02959bb5b43a3f9d881e5213ceedf535202b6a1

      Initial

      windowState = {Qt::WindowMaximized}

      Adding Qt::WindowFullScreen to windowState :

      setWindowState(this->windowState() | Qt::WindowFullScreen);
      

      And then removing it :

      setWindowState(this->windowState() & ~Qt::WindowFullScreen);
      

      Causes Maximized flag to dissapear :

      windowState = {Qt::WindowNoState}

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

            ogoffart Olivier Goffart (Woboq GmbH)
            friendnick Mykola Vankovych
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes