Hi,

i want show in my Qt Application the CPU state. So, i do:

. Create a script ( top -n 1 | grep Cpu | awk '{print $2}' ):
. when i execute the script in shell, i get ( for example): 5.9%us,

. In Qt, i create a QProcess when to get the CPU state:
. process->start("/home/script");

I receive Started() and finished(int, Qprocess::ExisStatus) Signals, but not the Signal readyReadStandardOutput() .





So, if when i execute the script in shell i get some output, when i execute process in Qt i should get outuput ??

To check if i was implement my process correct in Qt, i change my script to: (ls -lA), and in Qt i get a list of files as i execute the script in terminal.


Can anyone help me to fix this problem??

Thanks, Sergio Silva