PDA

View Full Version : Graphic evaluation



jd
7th February 2008, 10:35
Hello @all,
Iam a new here and greet all.

Problem:
I calculate the free / used disk space on linux systems by parsing df -h, now i'll show these data in graphic bars.

I've created two frames in the Qt-Designer, a "master"-frame and an inner frame.
The master-frame has a fix size. The inner frame has a variable size.

Example:
master-frame size = 400px.
inner-frame size = 200px with background-color.

These looks, the hdd is 50% used.

Iam searching for another method to display the graphic overview as QFrames,
have someone an idea?

so long
jd

PS: sorry for my bad english

ashukla
7th February 2008, 10:59
You can use QProcess for this

wysota
7th February 2008, 11:07
Iam searching for another method to display the graphic overview as QFrames,
have someone an idea?

How about using a QProgressBar? You can even style it using stylesheets to get the desired look.

jd
7th February 2008, 14:46
Thanks,

it works fine and looks very nice.

so long jd