Qiieha
22nd May 2012, 17:47
Hi,
A Thread emits a signal and the slot is in the mainthread. The slot's widget has a QEventLoop as Member. Is it ok to call loop.exec() in the slot.
If I don't call this, the slot returns and the Thread continue, because of BlockingQueuedConnection. But the user should have some time to decide something.
If the user has decided the I call loop.quit();
It seems to work, but is this ok. What are the cons?
thank u
A Thread emits a signal and the slot is in the mainthread. The slot's widget has a QEventLoop as Member. Is it ok to call loop.exec() in the slot.
If I don't call this, the slot returns and the Thread continue, because of BlockingQueuedConnection. But the user should have some time to decide something.
If the user has decided the I call loop.quit();
It seems to work, but is this ok. What are the cons?
thank u