Results 1 to 3 of 3

Thread: from qt, how to external program has finished his job?

  1. #1
    Join Date
    Nov 2011
    Location
    Karlsruhe, Germany
    Posts
    57
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Unhappy from qt, how to external program has finished his job?

    hi, all.

    I have linked an external program to my qt project, using QProcess.

    because I need to use the result of this external program.

    now the problem is how can my qt project be informed that this external program finishes his running and the result is ready?

    thank you.
    Last edited by cic; 9th November 2011 at 15:29.

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: from qt, how to external program has finished his job?

    QProcess has finished() signal. You can also use readyReadStandardOutput() signal to be notified when your external app writes something to stdout - you can then read it with readAllStandardOutput() (see docs for more details).

  3. #3
    Join Date
    Nov 2011
    Location
    Karlsruhe, Germany
    Posts
    57
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: from qt, how to external program has finished his job?

    thank you stampede, it works

Similar Threads

  1. Program has unexpectedly finished
    By Maluko_Da_Tola in forum Newbie
    Replies: 5
    Last Post: 1st December 2010, 09:54
  2. Replies: 1
    Last Post: 30th April 2010, 13:25
  3. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 18:05
  4. External Program Management with Qt
    By rapajic in forum Qt Programming
    Replies: 5
    Last Post: 7th April 2009, 09:52
  5. Replies: 7
    Last Post: 19th January 2008, 15:29

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.