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

Details

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

    Description

      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
                  }
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes