Results 1 to 2 of 2

Thread: qprocess

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default qprocess

    Hi,guys,
    I open a new .exe with QProcess.
    I want get some result from the .exe,but find that the .exe be existed, the result can return.
    Now,I want to get the real-time result of the .exe,that is,when I click the Apply button,the result can be return at the same time,but not at the time the .exe existed.

    QString arguments;
    arguments="my.exe ";
    myprocess=new QProcess(this);
    myprocess->start(arguments);

    connect(myprocess, SIGNAL(readyReadStandardOutput()), this, SLOT(readOutput()));

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: qprocess

    Quote Originally Posted by weixj2003ld View Post
    existed
    You mean exited or closed.

    Now,I want to get the real-time result of the .exe,that is,when I click the Apply button,the result can be return at the same time
    Stop for a moment and think this a little bit through.
    What would need to happen for you to get that information?

    You already have an application that posts a message to the standard output device when it is closed.
    This way, you can get that information when the program has closed. What do you need to change in this program to get information before it is closed?

Similar Threads

  1. Replies: 0
    Last Post: 26th August 2010, 10:44
  2. QProcess inside QProcess
    By bunjee in forum Qt Programming
    Replies: 7
    Last Post: 4th December 2008, 00:39
  3. QProcess
    By bashamehboob in forum Qt Programming
    Replies: 3
    Last Post: 31st March 2008, 15:21
  4. QProcess
    By girishdomain in forum Newbie
    Replies: 2
    Last Post: 31st August 2007, 09:48
  5. QProcess
    By agent007se in forum Newbie
    Replies: 10
    Last Post: 23rd July 2006, 01:11

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.