2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2016-06-24 11:33:16 +02:00
|
|
|
|
|
|
|
|
import QtQuick 2.0
|
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
|
id: layout
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
spacing: 6
|
|
|
|
|
Rectangle {
|
|
|
|
|
color: 'teal'
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.minimumWidth: 50
|
|
|
|
|
Layout.preferredWidth: 100
|
|
|
|
|
Layout.maximumWidth: 300
|
|
|
|
|
Layout.minimumHeight: 150
|
|
|
|
|
Text {
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
text: parent.width + 'x' + parent.height
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Rectangle {
|
|
|
|
|
color: 'plum'
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.minimumWidth: 100
|
|
|
|
|
Layout.preferredWidth: 200
|
|
|
|
|
Layout.preferredHeight: 100
|
|
|
|
|
Text {
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
text: parent.width + 'x' + parent.height
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|