Re: [Interest] QThread, correct exit.

2013-09-28 Thread Дмитрий Козлов
28.09.2013 13:57, Alexander Syvak пишет: Each thread emits blocking queued singnals to the main thread where button stop executes the code in the previous mail. 2013/9/28 Mandeep Sandhu > On Sat, Sep 28, 2013 at 3:14 PM, Alexander Syvak mailto:ale

Re: [Interest] QThread, correct exit.

2013-09-28 Thread Alexander Syvak
Each thread emits blocking queued singnals to the main thread where button stop executes the code in the previous mail. 2013/9/28 Mandeep Sandhu > > On Sat, Sep 28, 2013 at 3:14 PM, Alexander Syvak > wrote: > >> Hello, >> >> how to correctly stop a QThread execution? >> >> I am using >> thread

Re: [Interest] QThread, correct exit.

2013-09-28 Thread Mandeep Sandhu
On Sat, Sep 28, 2013 at 3:14 PM, Alexander Syvak wrote: > Hello, > > how to correctly stop a QThread execution? > > I am using > thread.quit(); > > thread.terminate(); > > Don't terminate. Quitting and waiting should be sufficient. > thread.wait(500); > > Without terminate() thread wait forever.

[Interest] QThread, correct exit.

2013-09-28 Thread Alexander Syvak
Hello, how to correctly stop a QThread execution? I am using thread.quit(); thread.terminate(); thread.wait(500); Without terminate() thread wait forever. Each thread is executing an event loop only (object is moved into thread). ___ Interest mailing