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

Advertised and documented property of Layouts does not work.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.3, 6.7.0 RC, 6.8.0 FF
    • 6.6.1
    • Quick: Layouts
    • None
    • Apple clang version 15.0.0
      macOS Sonoma 14.2.1
      Qt 6.6.1
      cmake version 3.27.7
      ninja version 1.10.2
    • macOS
    • ac1c2e317 (dev), b90ba4b7b (6.7), 49e9a9a94 (6.6)

    Description

      https://doc.qt.io/qt-6/qml-qtquick-layouts-columnlayout.html#uniformCellSizes-prop

       

      I switched to 6.6.1 because I wanted to use the `uniformCellSize` property of ColumnLayout. However, it does not work. QtCreator does suggest it to me in the context of the ColumnLayout, It also compiles but my application turns all white, and the debugging message appears: ""ColumnLayout.uniformCellSizes" is not available in QtQuick.Layouts 255.255."

      The 255.255 in the end changes to whatever version I specify when I specify a version. So even when I do "import QtQuick.Layouts 6.6" the error will be "ColumnLayout.uniformCellSizes" is not available in QtQuick.Layouts 6.6."

       

      import QtQuick
      import QtQuick.LayoutsWindow {
          width: 640
          height: 480
          visible: true
          title: qsTr("uniformCellSizes")    
          ColumnLayout {
              anchors.fill: parent        
              uniformCellSizes: true
              Rectangle {
                  id: greenId
                  width: 70
                  height: 70
                  color: "green"
                  Layout.alignment: Qt.AlignCenter
              }
              Rectangle {
                  id: blueId
                  width: 100
                  height: 100
                  color: "blue"
              }
              Rectangle {
                  id: redId
                  width: 100
                  height: 100
                  color: "red"
              }
          }
      } 

      My CMakeLists.txt contains the statement `qt_standard_project_setup(REQUIRES 6.6)`

       

      It also does not work for RowLayout.

      The properties uniformCellWidths and uniformCellHeights seem to work for GridLayout.

       

      Attachments

        Issue Links

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

          Activity

            People

              smd Jan Arve
              chrispycoder Christian Niekler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes