Results 1 to 4 of 4

Thread: Detect First QProcess finished in a group and kill other

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Detect First QProcess finished in a group and kill other

    Just to be shorter.
    How can I wait for one QProcess (having more than one running) to be finished without knowing which will be finished as the first?

    Please answer me!!! I NEED HELP!!!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Detect First QProcess finished in a group and kill other

    Don't shout

    Rely on signals - QProcess::finished will notify you that a particular process has finished. You can then terminate the remaining ones.

  3. #3
    Join Date
    Jan 2008
    Posts
    72
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Detect First QProcess finished in a group and kill other

    I think you can kill your process by knowing its process id........
    use Q_PID QProcess:id () const .............
    It will help you ..........

Tags for this Thread

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.