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

QML ApplicationWindow not shown as maximized in Ubuntu 24.04

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 5.15.12, 6.5.7, 6.7.2, 6.8.0, 6.9
    • None
    • Linux/X11

      On Ubuntu 24.04, GNOME 46, with QPA platform "xcb", the following QML code fails to open a maximized window:

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      import QtQuick.Window 2.15
      
      ApplicationWindow {
          id: root
          visible: true
          visibility: Window.Maximized
          Text {
              text: "Hello world"
          }
      }
      

       

      See attached screencast. The window is not maximized but once the window frame is manipulated, it "snaps" into the maximized state.

      I've found a workaround which is to set it to AutomaticVisibility in QML and then once the component is created, I set it to Maximized from C++.

       

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            johnio-zivid John Ingve Olsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes