Re: QTimer doesn't expire
Is the event loop running during those 2 seconds?
Re: QTimer doesn't expire
Quote:
Originally Posted by
wysota
Is the event loop running during those 2 seconds?
Yes, event loop is running as ClassB in my case is actually a QWidget class. When ever it receives some data in MySlot(), it displays them in the widget and then when timer expires, the widget is reset.
Re: QTimer doesn't expire
Just to be sure: ObjClassA and ObjClassB live in different threads, right?
Cheers,
_
Re: QTimer doesn't expire
Quote:
Originally Posted by
anda_skoa
Just to be sure: ObjClassA and ObjClassB live in different threads, right?
Yes yes, both the objects are in different threads.
There are very high chances of some bug being present in my code and I am trying very hard to detect where the bug could be. Meanwhile I just wanted to know if there are possibilities of a QTimer not starting or not expiring. Can some condition arise wherein inspite of the event loop running QTimer doesn't function properly?
Re: QTimer doesn't expire
Quote:
Originally Posted by
sattu
Yes yes, both the objects are in different threads.
Does each thread run its own event loop?