PDA

View Full Version : How to get available free space in linux partition ?



npc
28th December 2006, 10:28
Hi all,

I am working on Qt 3 in linux machine.

How could I find out the available free space ( available memory ) in root (/) or any partition.

is there any Qt/c++ solution ?

jpn
28th December 2006, 10:51
Unfortunately, Qt doesn't offer any way for that: http://www.trolltech.com/developer/task-tracker/index_html?id=125911&method=entry

Try searching Qt-interest Mailing List (http://lists.trolltech.com/qt-interest/), there are some solutions, at least for Linux.

ball
28th December 2006, 12:38
You can use QProcess with the linux command 'df -h', please try.