Results 1 to 3 of 3

Thread: How to get available free space in linux partition ?

  1. #1
    Join Date
    Mar 2006
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question How to get available free space in linux partition ?

    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 ?

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

    Default Re: How to get available free space in linux partition ?

    Unfortunately, Qt doesn't offer any way for that: http://www.trolltech.com/developer/t...1&method=entry

    Try searching Qt-interest Mailing List, there are some solutions, at least for Linux.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    3
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to get available free space in linux partition ?

    You can use QProcess with the linux command 'df -h', please try.

Similar Threads

  1. Announce: Free Pascal / Lazarus for Qt
    By sekelsenmat in forum Qt-based Software
    Replies: 0
    Last Post: 10th October 2006, 13:28
  2. how to find the free space on a drive
    By klaus1111 in forum Qt Programming
    Replies: 2
    Last Post: 14th July 2006, 10:25
  3. 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.