Warning, /frameworks/kirigami/examples/sizegroup.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15 0002 import QtQuick.Layouts 1.15 0003 import QtQuick.Controls 2.15 as Controls 0004 import org.kde.kirigami 2.20 as Kirigami 0005 0006 Kirigami.ApplicationWindow { 0007 pageStack.initialPage: Kirigami.Page { 0008 Kirigami.SizeGroup { 0009 items: [rect1, rect2, rect3] 0010 mode: Kirigami.SizeGroup.Width 0011 } 0012 RowLayout { 0013 id: layout 0014 anchors.fill: parent 0015 0016 Rectangle { 0017 id: rect1 0018 color: "red" 0019 height: 100 0020 width: 400 0021 } 0022 Rectangle { 0023 id: rect2 0024 color: "green" 0025 height: 100 0026 implicitWidth: 150 0027 } 0028 Rectangle { 0029 id: rect3 0030 color: "blue" 0031 height: 100 0032 implicitWidth: 200 0033 } 0034 } 0035 } 0036 }