创建Qt Quick Application - Empty
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.0
import QtQuick.Controls.Styles 1.4
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
MouseArea{
anchors.fill: parent
onClicked: {
Qt.quit();
}
}
Text {
id: hello
text: qsTr("hello world")
anchors.centerIn: parent
}
Button{
id:auto
text: "提交"
anchors.centerIn: parent
background: Rectangle{
implicitWidth: 80
implicitHeight: 60
color: "lightgray"
}
}
}