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

QML freezes with GridLayout inside ColumnLayout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.10.1
    • 5.9.1
    • Quick: Layouts
    • None
    • macOS Sierra 10.12.6

      Qt 5.9.1 (from brew)
    • 534262b63140c7a6d5d974e97d2164bb8023f449

    Description

      qml_freeze.qml causes a freeze and no view is showed.

      qml_no_freeze.qml works and shows the view.

      Only difference is "anchors.fill: parent" is commented out in the GridLayout.

       

      To reproduce:

      $ qmlscene --verbose qml_freeze.qml
      Qt 5.9.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 8.1.0 (clang-802.0.42) (Apple))
      
      qml_freeze.qml
      import QtQuick 2.5
      import QtQuick.Controls 1.4
      import QtQuick.Layouts 1.1
      
      ApplicationWindow {
          visible: true
          ColumnLayout {
              anchors.fill: parent
              GridLayout {
                  anchors.fill: parent
                  Label {
                      text: "Hello"
                  }
                  SpinBox {
                  }
              }
              RowLayout {
              }
          }
      }
      
      qml_no_freeze.qml
      import QtQuick 2.5
      import QtQuick.Controls 1.4
      import QtQuick.Layouts 1.1
      
      ApplicationWindow {
          visible: true
          ColumnLayout {
              anchors.fill: parent
              GridLayout {
      //          anchors.fill: parent
                  Label {
                      text: "Hello"
                  }
                  SpinBox {
                  }
              }
              RowLayout {
              }
          }
      }
      

      Attachments

        1. qml_freeze.qml
          0.4 kB
        2. qml_no_freeze.qml
          0.4 kB
        For Gerrit Dashboard: QTBUG-63303
        # Subject Branch Project Status CR V

        Activity

          People

            smd Jan Arve
            dheym Dag Heyman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes