首页 > 其他 > 详细

qml 列/行布局--单选框

时间:2021-05-16 18:56:47      阅读:12      评论:0      收藏:0      [点我收藏+]

列/行布局

  • 单选框
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 列/行布局--单选框

原文:https://www.cnblogs.com/lodger47/p/14774243.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!