Results 1 to 2 of 2

Thread: How can we check the disk space?

  1. #1
    Join Date
    Sep 2008
    Posts
    93
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default How can we check the disk space?

    Hello,

    Which class can we use to check the disk space?

    Thanks!

  2. #2
    Join Date
    Aug 2009
    Posts
    29
    Thanked 1 Time in 1 Post

    Default Re: How can we check the disk space?

    you mean the psychical disc or just the partition. I don;t know about the physical disc but for a partition or any adress on your system just use QFileInfo.

    QFileInfo sizeInfo("C:/");
    int size = sizeInfo.size();

    something like this (might made some typo's or something)

  3. The following user says thank you to Baasie for this useful post:

    Lawand (27th February 2011)

Similar Threads

  1. Replies: 2
    Last Post: 4th December 2008, 17:50
  2. Disk space
    By QTInfinity in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2008, 16:05
  3. How to get hard disk free space in Windows?
    By cutie.monkey in forum Qt Programming
    Replies: 1
    Last Post: 20th September 2008, 08:36
  4. How to find the Space on destination disk from QFileDialog?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2008, 13:36
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.