Hi there,

I need some help on including threads on some widget I have done some weeks ago.

I have a module that build reports over some database data. When I first build it, I just wanted to get one report at a time and so i didn't use QThread.

Now, I want to run more than one report at a time. My problem is that I can't figure out how to use threads on my already built module.

I have a module called ReportViewWidget that runs one report at a time and updates its GUI with a result preview. Once the report execution time can sometimes be of 10 or more minutes, I want to be able to run another report while the first still running.

Can I include ReportViewWidget class in a myThread class and include myThread class into ReportViewWidget at the same time?

Can anyone help me with some idea?


Thanks in advance.