AS
Size: a a a
AS
AS
AS
import QtQml 2.12
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
ColumnLayout {
anchors.fill: parent
RowLayout {
Layout.fillWidth: true
Button {
id: button1
text: "do it"
Layout.fillWidth: true
}
Button {
id: button2
text: "do not do it"
Layout.fillWidth: true
}
}
TextField {
text: button1.width
}
TextField {
text: button2.width
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}
AS
AS
AS
AS
КГ
AS
AS
ColumnLayout {
id: columnLayout
anchors.fill: parent
RowLayout {
id: layout
Layout.fillWidth: true
Button {
id: button1
text: "do it"
Layout.fillWidth: true
Layout.preferredWidth: columnLayout.width / 2
}
Button {
id: button2
text: "do not do it !!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Layout.fillWidth: true
Layout.preferredWidth: columnLayout.width / 2
}
}
TextField {
text: button1.width
}
TextField {
text: button2.width
}
TextField {
text: layout.width
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
}
AS
m
ColumnLayout {
id: columnLayout
anchors.fill: parent
RowLayout {
id: layout
Layout.fillWidth: true
Button {
id: button1
text: "do it"
Layout.fillWidth: true
Layout.preferredWidth: columnLayout.width / 2
}
Button {
id: button2
text: "do not do it !!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Layout.fillWidth: true
Layout.preferredWidth: columnLayout.width / 2
}
}
TextField {
text: button1.width
}
TextField {
text: button2.width
}
TextField {
text: layout.width
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
}
preferredWidth
AS
КГ
з
QVector<QPair<QString, T>> or QList <QPair<QString, T>>