<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## 概述 Qt 5.4.0 版本開始新增的類 ![](https://qtguide.ustclug.org/images/ch07/ch07-05-01.png) ![](https://qtguide.ustclug.org/images/ch07/ch07-05-02.png) 常用函數 ``` static QList<QStorageInfo> mountedVolumes() // 打印分區盤的消息 static QStorageInfo root(); 打印根分區 QStorageInfo::?QStorageInfo(const QString & path) QStorageInfo::?QStorageInfo(const QDir & dir) bool QStorageInfo::?isValid() const //當前分區是否已掛載到文件系統 bool QStorageInfo::?isReady() const //當前分區的文件系統是否正常工作 qint64 QStorageInfo::?bytesTotal() const //分區總大小,單位字節 qint64 QStorageInfo::?bytesFree() const //分區剩余空閑空間,單位字節 qint64 QStorageInfo::?bytesAvailable() const //當前用戶可以使用該分區中多大空閑空間,單位字節 QByteArray QStorageInfo::?fileSystemType() const //Windows常見的文件系統類型是NTFS,Linux常用ext3等 QString QStorageInfo::?name() const //比如 C: 盤標簽叫 System,D: 盤標簽叫 Programs,標簽名有可能為空 QString QStorageInfo::?displayName() const //有標簽名就顯示標簽名,沒標 簽名顯示盤符名 bool QStorageInfo::?isReadOnly() const //是否為只讀分區或者無權限寫入,如光盤分區 bool QStorageInfo::?isRoot() const //是否為操作系統安裝的根 QByteArray QStorageInfo::?device() const //設備名,Linux系統常見為 /dev/sda\* ,Windows 是一長串設備代碼 QString QStorageInfo::?rootPath() const //分區的掛載點 ``` ## 示例 ``` QStorageInfo storage = QStorageInfo::root(); qDebug() << storage.rootPath(); if (storage.isReadOnly()) qDebug() << "isReadOnly:" << storage.isReadOnly(); qDebug() << "name:" << storage.name(); qDebug() << "fileSystemType:" << storage.fileSystemType(); qDebug() << "size:" << storage.bytesTotal()/1000/1000 << "MB"; qDebug() << "availableSize:" << storage.bytesAvailable()/1000/1000 << "MB"; ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看