Hi,
I don't remeber where I readed it but basically the OS will start the thread after calling "start". Maye into Qt Threads documentation.
So, a good way of doing it is waiting the "started" SIGNAL emited by the thread.
You get a different thread ID because it is assigned on "start()" call but as I noticed, the thread is not really running. Sometimes people are confused about the QThread inherited object and the thread where its execution is done. One thing is an object, and the other is a OS thread.
Hope it helps.




Reply With Quote
Bookmarks