2 Star 14 Fork 6

龚建波/QmlComponentStyle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.qml 713 Bytes
一键复制 编辑 原始数据 按行查看 历史
龚建波 提交于 2021-01-17 15:08 . loading component
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
ApplicationWindow{
id: root
visible: true
width: 820
height: 600
title: qsTr("Qml Component Style: by Gong Jian Bo")
Loader{
id: root_loader
anchors.fill: parent
source: "qrc:/CustomComponentDemo.qml"
}
menuBar: MenuBar{
Menu{
title: "Demo List"
Action{
text: "Basic"
onTriggered: root_loader.setSource("qrc:/BasicComponentDemo.qml")
}
Action{
text: "Custom"
onTriggered: root_loader.setSource("qrc:/CustomComponentDemo.qml")
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
QML
1
https://gitee.com/gongjianbo/QmlComponentStyle.git
git@gitee.com:gongjianbo/QmlComponentStyle.git
gongjianbo
QmlComponentStyle
QmlComponentStyle
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385