Results 1 to 5 of 5

Thread: unable to terminate QProcess in QThread, returns wrong status

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: unable to terminate QProcess in QThread, returns wrong status

    Are you sure you even need a thread..? QProcess launches an external process so it won't block anything.

    Edit: Oh, and by the way, you are calling myprocess object's methods from 2 separate threads.

    QMyThread::teminateProcess() and QMyThread::stateOfProcess() are executed in the main thread. QMyThread::run() is executed in the separate thread.
    Last edited by jpn; 27th July 2006 at 10:32.
    J-P Nurmi

  2. The following user says thank you to jpn for this useful post:

    sector (27th July 2006)

Similar Threads

  1. QProcess in a QThread
    By chombium in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2006, 15:52

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.