Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55370

QStorageInfo does not work for drive names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.6.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7 64 bit
      MSVC 2013

      Description

      The code

      QStorageInfo storageInfo("C:\\");
      int totalBytes = storageInfo.bytesAvailable();
      int freeBytes = storageInfo.bytesFree();
      

      always returns 0 on Windows for any root drive.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              thiago Thiago Macieira
              Reporter:
              ars.masiuk Ars Masiuk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes