QGC的Mission表盘

MissionSettingsEditor.qml

Rectangle{
    id:valuesRect;
    width:availableWidth;
    visible:missionItem.isCurrentItem;
    radius:_radius;



CameraSection.qml组件




}

点击Camera后
在CameraSection.qml中

Column{
    anchors.left:parent.left
    anchors.right:parent.right
    spacing:_margin

...
...
//SectionHeader组件在
    SectionHeader{
        id:cameraSectionHeader

        text:qsTr("Camera")
        checked:false;
    }

}

SectionHead.qml中定义了SectionHeader组件

FocusScope{
    id:_root;
    anchors.left:paret.left
    anchors.right:paret.right
    onExclusiveGroupChanged:{
        if(exclusiveGroup)
            exclusiveGroup.bindCheckable(_root);
    }


    QGCMouseArea{
        anchors.fill:parent;
        onClicked:{
            _root.focus=true
            checked=!checked
        }
        ColumnLayout{
            id:column;
            Item{
                height:_sectionSpacer
                width:1
                visible:showSpacer

            }

        }


    }



}

这里写图片描述

QGC中基本上是这个结构

//图中1的勾选框
QGCCheckBox{
    id:gimbalCheckBox
    text:qsTr("Gimbal")
    checked:_camera.specifyGimbal
    onClicked:_camera.specifyGimbal=checked;
    Layout.fillWidth:true
}

//图中2的输入框
FactTextField{
    fact:_camera.gimbalPitch
    implicitWidth:ScreenTools.defaultFontPixelWidth*9
    enabled:gimbalCheckBox.checked
}
FactTextField{
    fact:_camera.gimbalYaw
    implicitWidth:ScreenTools.defaultFontPixelWidth*9
    enabled:gimbalCheckBox.checked
}

MapQuickItem可以向地图中指定位置添加任意大小的Qt Quick object

MapItemView

Qt中Map组件:
可能在:
QtLocation 5.6
QtPositioning 5.6中

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值