0
点赞
收藏
分享

微信扫一扫

QML_001—说明文档的使用

开源GIS定制化开发方案 2022-04-18 阅读 94
qt

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 + '"'))
//        }
//    }
}

举报

相关推荐

0 条评论