Results 1 to 3 of 3

Thread: Is there any QT function or class to find the free space on disk

  1. #1
    Join Date
    Oct 2007
    Location
    Bangalore
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Default Is there any QT function or class to find the free space on disk

    Hi,ALL

    Im not getting any QT function or class,which can give the information about free space in the disk(I got the disk list by QDir::drives).
    In windows i can use getFreeDiskSpace.But i want any QT func or class to do the same.



    Regards,
    chethana

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is there any QT function or class to find the free space on disk

    I wonder if there is any Qt specific way of finding this out. One way you can do this is by finding the difference between the size of the drive and the sum of size of all the files on that drive.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Is there any QT function or class to find the free space on disk

    No, there is no Qt function to do that. Here's a quick draft I made some time ago:
    svn export svn://libqxt.org/svn/libqxt/sandbox/jpnurmi/QxtFileSystemInfo
    J-P Nurmi

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 15:22
  2. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 10:06
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 13:57
  4. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 18:33
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 13:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.