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

QStorageInfo does not work for drive names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.6.1
    • None
    • 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

            thiago Thiago Macieira
            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