QML帮助文档的使用
某个库的加入
这些都是这个库可以用的小构件
这是某个构件可以用的小方法
这是今天的。
import QtQuick 2.6
import QtQuick.Window 2.2
import QtQuick.Controls 1.4
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Column{
Button{
id:btn
text:'btn Z'
}
Label{
text:btn.text
color:'red'
font.pointSize: 11
}
}
// MainForm {
// anchors.fill: parent
// mouseArea.onClicked: {
// console.log(qsTr('Clicked on background. Text: "' + textEdit.text + '"'))
// }
// }
}