70 lines
1.4 KiB
QML
70 lines
1.4 KiB
QML
import QtQuick
|
|
|
|
Window {
|
|
width: 640
|
|
height: 480
|
|
visible: true
|
|
title: qsTr("Hello World")
|
|
|
|
// Item {
|
|
// id: containerItemId
|
|
// x: 50
|
|
// y: 50
|
|
// width: 600
|
|
// height: 300
|
|
|
|
// Rectangle {
|
|
// anchors.fill: parent
|
|
// color: "beige"
|
|
// // border.color: "black"
|
|
// // border.width: 10
|
|
// border {
|
|
// color: "black"
|
|
// width: 10
|
|
// }
|
|
// }
|
|
|
|
// Rectangle {
|
|
// x: 0
|
|
// y: 10
|
|
// width: 50
|
|
// height: 50
|
|
// color: "red"
|
|
// }
|
|
|
|
// Rectangle {
|
|
// x: 60
|
|
// y: 10
|
|
// width: 50
|
|
// height: 50
|
|
// color: "green"
|
|
// }
|
|
|
|
// Image {
|
|
// x: 150
|
|
// y:50
|
|
// width: 100
|
|
// height: 100
|
|
// // source: "qrc:/...."
|
|
// }
|
|
// }
|
|
|
|
MButton {
|
|
id: button1
|
|
buttonText: "Button1"
|
|
// color: "grey"
|
|
onButtonClicked: {
|
|
console.log("Clicked on button1")
|
|
}
|
|
}
|
|
MButton {
|
|
id: button2
|
|
anchors.top: button1.bottom
|
|
buttonText: "Button2"
|
|
// color: "yellow"
|
|
onButtonClicked: {
|
|
console.log("Clicked on button1")
|
|
}
|
|
}
|
|
}
|