Re: signal getting caught in another event loop
Signals dont get stuck in event loops. signals don't care about which event loop they enter. Slots tend to care a bit more, but signals... not so much.
"Now wat happening is that when i started my local event loop from above class the signal is getting caught in main event loop instead of it getting caught in my local event loop"
It wont make any difference. If the loops are in different threads, then you may have a problem stopping some slots from running (since slots only execute in their own thread when executed from a signal (normally)).
"Wats the behavior of same signal and slots across different event loops in Qt"
different event loops makes no difference if they're in the same thread.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks