本文主要是介绍qml 列/行布局--单选框,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
列/行布局
import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Item {
anchors.fill: parent
// 列布局 Column
ColumnLayout{ //RowLayout行布局 Row
RadioButton {
checked: true
text: qsTr("火锅")
}
RadioButton {
// checked: true
text: qsTr("水煮鱼")
}
RadioButton {
// checked: true
text: qsTr("凉拌青瓜")
}
}
}
}
这篇关于qml 列/行布局--单选框的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!