plik ui
Kod: Zaznacz cały
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Window 2.0
import QtQuick.Layouts 1.0
ApplicationWindow {
id : root
title: qsTr("Hello World")
width: 500
height: 360
toolBar: ToolBar {
RowLayout {
width: parent.width
Button {
text: "green"
onClicked: root.color = "green"
}
Button {
text: "red"
onClicked: root.color = "red"
}
Button {
text: "blue"
onClicked: root.color = "blue"
}
Slider {
Layout.fillWidth: true
}
TextField {
}
}
}
GroupBox {
x: 54
y: 30
title: "GroupBox"
ColumnLayout {
RadioButton { text: "button1" }
RadioButton { text: "button2" }
RadioButton { text: "button3" }
RadioButton { text: "button4" }
RadioButton { text: "button5" }
}
}
}
z góry dzięki