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

Flickering of window when changing from Fullscreen mode to Maximized mode

    XMLWordPrintable

Details

    • Windows

    Description

      When window is maximized after being in full screen mode, it first sets the geometry to the one saved for Normal mode before maximizing the window which to the user looks like flickering . The expected behavior of the Windows app (like Chrome or Word) would be to set it directly to the geometry matching the maximized window size instead of going first via geometry which was set for the Normal mode.

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls
      import QtQuick.Layouts
      
      Window {
          id: root
          width: 1000
          height: 2000
          visible: true
      
          Item{
              anchors.fill:parent
              ColumnLayout{
                  id: myColumnLayout
                  anchors.centerIn: parent
                  anchors.margins: 15
                  spacing: 15
                  Button{
                      id: btnNor
                      Layout.fillWidth: true
                      height: 150
                      text: "NORMAL"
                      onClicked: {
                          showNormal()
                      }
                  }
                  Button{
                      id: btnMax
                      Layout.fillWidth: true
                      height: 150
                      text: "MAXIMIZE"
                      onClicked: {
                          showMaximized()
                      }
                  }
                  Button{
                      id: btnFull
                      Layout.fillWidth: true
                      height: 150
                      text: "FULL"
                      onClicked: {
                          showFullScreen()
                      }
                  }
              }
          }
      }
      

      Way to reproduce:
      1) Click "FULL" button to enter the full screen mode
      2) Click "MAXIMIZE" button to enter the maximized mode, Window seems to flick as it updates and debugging the code reveals it first sets the geometry to a normal geometry before maximized. This seems to be inconsistent if compared to the other native Windows applications.

      Attachments

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

        Activity

          People

            timothee.keller Timothée Keller
            foxxx Tuukka Kettunen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change