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

Infinite polish loop in ColumnLayout + GridLayout since "Adapt layouts to take advantage of new size policy information"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.7
    • Quick: Layouts
    • None
    • Linux/X11
    • dd72694b6046d98a64bd99361ed9cb4613af78f8

      Since https://invent.kde.org/qt/qt/qtdeclarative/-/commit/dd72694b6046d98a64bd99361ed9cb4613af78f8 , the following QML code will cause infinite polish loop.

      import QtQuick
      import QtQuick.Layouts
      import QtQuick.Controls as QQC2
      
      Window {
          id: root
          width: 16 * 29
          height: 16 * 35
          visible: true
          ColumnLayout {
              spacing: 0
              QQC2.ComboBox {
                  id: modeSwitcher
                  Layout.minimumWidth: 16 * 17
                  currentIndex: 0
                  model: ["Always off"]
              }
              GridLayout {
                  columns: 2
                  QQC2.Label {
                      // Match combobox width
                      Layout.minimumWidth: modeSwitcher.width
                      text: "Current temperature: "
                  }
                  QQC2.Label {
                      text: `100K`
                      textFormat: Text.PlainText
                  }
              }
          }
      }
      

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

            santhoshkumar Santhosh Kumar Selvaraj
            fusionfuture Yuanzheng Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes