Hello,
i am new in Qt3 and linux world: so my questions can be stupid for some of you ...sorry

I have to do a GUI interface in Qt of a perl programm. So i put a QTextEdit in a window, implement a QProcess, and try to have stdout from konsole to my QTextEdit. And try to write from my app to the konsole.

I try lots of tutorials but without success:
Qt Code:
  1. 1/In my constructor of window:
  2. myProc = new QProcess(this);
  3.  
  4. 2/in my button click:
  5. myProc->addArgument("konsole");
  6. myProc->addArgument("-e");
  7. myProc->addArgument("pet"); // my exe perl
  8.  
  9. connect(myProc, SIGNAL(readyReadStdout(), this, SLOT(readFromStdout()));
  10.  
  11. myProc->start();
  12.  
  13. 3/My slot:
  14. void MyWin::readFromStdout()
  15. {
  16. myTextEdit->append(myProc->readStdout());
  17. }
  18.  
  19. 4/ for writing i use:
  20. myProc->writeToStdin(myString);
To copy to clipboard, switch view to plain text mode 

The perl app start in a konsole but nothing is read or write in my text edit. Is there someone to help me ?

Thanks a lot