第一章 基础设置
(3)qml文件导入
import QtQuick
import QtQuick.Controls
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Demo")
// 加载 Screen01.qml
Loader {
id: screenLoader
source: "Screen01.qml" // 直接引用同目录下的文件
anchors.fill: parent
}
}
最后更新于