What's the alternative of api 'hasPendingEvents'?
-
What if i want to be sure that no more Events are beeing processed or queued before continuing e.g. cleanup etc..?!
Should i use processEvents(AllEvents) instead?! -
can i query if it is blocked?
In my case i just want to cleanup a Test class, and verify that all events have been processed before continuing with the cleanup.@Zuuka said in What's the alternative of api 'hasPendingEvents'?:
can i query if it is blocked?
Why? As I said: as long as your code is doing something (like a slot being executed) the event loop is blocked (means: it can't process events). There is no need to query anything.
-
Hi,
Out of curiosity, are you using QTest ?
-
can i query if it is blocked?
In my case i just want to cleanup a Test class, and verify that all events have been processed before continuing with the cleanup.@Zuuka said in What's the alternative of api 'hasPendingEvents'?:
hat all events have been processed before continuing with the cleanup.
What exact events?
-
Ok - why are they important? If they are that important then you also have to check for them in the first place. Use an event filter for example.