import QtQuick
//Maa.qml
Rectangle {
width: 100
height: 100
color: "red"
}
import QtQuick
import QtQuick.Controls
//station_winndow.qml
Rectangle {
id:station_Window
width: 180
height: 889
color: "#253447"
}
import QtQuick
import QtQuick.Controls
Main.qml
ApplicationWindow {
visible: true
width: 200
height: 200
//方式一 组件可以不大写开头
// Loader {
// id: cs4a
// }
// Button {
// text: "Click Me"
// onClicked: {
// cs4a.source='station_winndow.qml';
// }
// }
//方式二 组件必须大写开头
Maa{
anchors.centerIn: parent
}
}