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.
Bookmarks