I would do it in the qobject class, in the slot that executes the query or in a slot connected to the thread's started signal.
Why would it? The default implementation of QThread::run() runs an event loop. it doesn't finish until QThread::exit() is called.
When you create the thread. Since you want to directly connect the dialog to the query slot, before you create the dialog or even when you create the applicatIons' main GUI.
Signals can transport parameters to the slot.
Does it work if you do not use a thread and have the query class instance in the main thread?
Cheers,
_






Reply With Quote
Bookmarks