The Recommended Way to Use QThread
Post date: 07-May-2012 19:57:34
Reaching this page, you are likely looking for information on how to use QThread. Right. The page gives plenty of information on what the class is about and how to use it, including some code samples.
The problem is, the usage is wrong.
The problem is, the usage is wrong.
The documentation recommends sub-classing QThread and that's where it goes wrong. It's not until you scroll all the way to the bottom of the page where you see a note showing you the right way to use QThread. Sub-classing QThread is neither needed, nor recommended. Thus, I strongly encourage you to visit that page scroll to the bottom and review the note. You will find a handy snippet of code showing you how to do it right.