QGC的Mission表盘

来源:互联网 发布:淘宝介入手机页面取消 编辑:程序博客网 时间:2024/04/25 15:04

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中

原创粉丝点击