Re: basic qthread question
You are creating the thread on the stack inside the loop, so the object (and the thread behind it) gets killed before it has a chance to do anything. And you might be experiencing a crash if you never reach the second iteration of the loop.
Re: basic qthread question
You are right, I now use the signal/slot and QList to hold the trashthread, and each time I can release a small amount of trashthread (the real program takes large memory) each time when some trashthread finished. Thanks.