im making a qprocess running a program and i have a textfield that prints the output of the program.

im using the folloiwn code to get the output

Qt Code:
  1. void mainForm::readFromStdout()
  2. {
  3. outputTextEdit->append( proc->readStdout() );
  4. }
  5.  
  6. and
  7.  
  8. connect( proc, SIGNAL(readyReadStdout()),
  9. this, SLOT(readFromStdout()) );
To copy to clipboard, switch view to plain text mode 
everything works fine. except the only problem is, this output reads in chunks, rather than smoothly.


even in the example from qt3 for qprocess it says
Qt Code:
  1. void UicManager::readFromStdout()
  2. {
  3. // Read and process the data.
  4. // Bear in mind that the data might be output in chunks.
  5. output->append( proc->readStdout() );
  6. }
To copy to clipboard, switch view to plain text mode 


i think it has to do with the buffer size set in qprocess->readStdout(). im not sure how to change this. is there anyway to i can make the output append more frequently?