QML-FolderListModel

import QtQuick 2.0
import QtQuick.Window 2.12
import QtQuick.Controls 2.5
import Qt.labs.folderlistmodel 2.13


Window {
    id:window
    width: 640
    height: 480
    color: "gray"
    visible: true

    ListView{
        width: 200
        height: 400
        FolderListModel{
            id:folderModel
            folder: "file:///D:"
            //检索所有文件以及文件夹
            nameFilters: ["*"]
            //不展示文件夹
//            showDirs: false
            //文件夹优先展示
            showDirsFirst: true
            Component.onCompleted: {
                console.log(folder)
            }

        }
        model: folderModel
        delegate: Text {
            text: fileName
            font.pixelSize: 24
        }
    }

}

QGroundControl(简称QGC)是一款开源的无人机地面站软件,用于与无人机进行通信、控制和监控。面是QGC在Ubuntu 20.04上的安装步骤: 1. 打开终端,更新软件包列表: ``` sudo apt update ``` 2. 安装QGroundControl所需的依赖库: ``` sudo apt install gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-gl libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer1.0-dev libgstreamer-gl1.0-dev libgstrtspserver-1.0-dev libglib2.0-dev libudev-dev libxml2-utils protobuf-compiler libprotobuf-dev libprotoc-dev libqt5serialport5-dev qtbase5-private-dev qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-window2 qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel qml-module-qt-labs-platform qml-module-qt-labs-qmlmodel qml-module-qt-labs-particles qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-xmllistmodel qml-module-qtqml-models2 qml-module-qtqml-statemachine qml-module-qtqml-models2 qtdeclarative5-private-dev qtdeclarative5-dev-tools qttools5-dev-tools qttools5-dev ``` 3. 下载QGroundControl的AppImage文件: ``` wget https://s3-us-west-2.amazonaws.com/qgroundcontrol/latest/QGroundControl.AppImage ``` 4. 添加可执行权限: ``` chmod +x QGroundControl.AppImage ``` 5. 运行QGroundControl: ``` ./QGroundControl.AppImage ``` 这样就完成了QGroundControl在Ubuntu 20.04上的安装。你可以通过运行AppImage文件来启动QGC,并开始与无人机进行通信和控制。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值