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

QML Window FullScreen children fill

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.6.0
    • Quick: Other
    • None
    • Qt 5.6 MSVC2015 32bit Windows 10

    Description

      When creating QML Window in "FullScreen" mode the children items are not filling the whole screen although they have 'anchors.fill: parent' specified.
      This worked fine in 5.5. Minimal code to reproduce:

      import QtQuick 2.6
      import QtQuick.Window 2.2
      
      Window {
        visible: true
        visibility: "FullScreen"
      
        Rectangle {
          anchors.fill: parent
          color: "red"
      
          Component.onCompleted: {
            console.log("size:" + width)
          }
        }
      
        MouseArea {
          anchors.fill: parent
          onClicked: {
            Qt.quit();
          }
        }
      
        Text {
          text: qsTr("Hello World")
          anchors.centerIn: parent
        }
      }
      

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            julius Julius
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes