PDA

View Full Version : How can we check the disk space?



learning_qt
15th December 2009, 12:51
Hello,

Which class can we use to check the disk space?

Thanks!

Baasie
15th December 2009, 14:59
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)