On 11/26/2019 10:29 AM, Vlad Stelmahovsky wrote:
1. quit guarantees only quit from event loop.
yes, i know it.
wait() will wait maximum INT_MAX milliseconds and then return false
yes, and this guarantees that QThread object will not be destroyed until
thread is finished.
i.e.
thread->quit(); thread->wait(); delete thread;
thread not finished --> wait never returns --> QThread destructor never
called.
2. So you did not created any threads? it was not clear from your
initial message
I do. It seems your knowledge of Qt is not very good. I think you need
to do some googling on how to use QThread properly :)
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest