Results 1 to 5 of 5

Thread: problem with QProcess in Qt4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2006
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem with QProcess in Qt4

    Quote Originally Posted by fullmetalcoder View Post
    Really? Then make shouldn't cause any trouble... That's the way Edyuk recieve output from compilation and no problem has ever occured on any platform...
    The following is pretty much the code. Can you take a look at it?
    Qt Code:
    1. {
    2. process.setWorkingDirectory(file.absolutePath());
    3. QObject::connect(&process,SIGNAL(readyReadStandardOutput()),
    4. this,SLOT(output()));
    5. QObject::connect(&process,SIGNAL(readyReadStandardError()),
    6. this,SLOT(output()));
    7. process.start("make");
    8. }
    To copy to clipboard, switch view to plain text mode 

    The output() slot is:

    Qt Code:
    1. output(){
    2. out.append(QString(process.readAllStandardOutput()));
    3. out.append(QString(process.readAllStandardError()));
    4. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 20th October 2006 at 09:20. Reason: missing [code] tags

Similar Threads

  1. problem with qprocess
    By deekayt in forum Qt Programming
    Replies: 2
    Last Post: 13th June 2006, 13:30
  2. QProcess problem in accessing stdout
    By aruna in forum Qt Programming
    Replies: 1
    Last Post: 19th April 2006, 17:56
  3. Replies: 16
    Last Post: 7th March 2006, 15:57
  4. Qt4 QProcess Problem
    By qleutes in forum Qt Programming
    Replies: 10
    Last Post: 23rd January 2006, 09:42
  5. QProcess problem with windows batch file
    By bood in forum Qt Programming
    Replies: 11
    Last Post: 6th January 2006, 08:08

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
  •  
Qt is a trademark of The Qt Company.