PDA

View Full Version : removePostedEvents()



squidge
2nd December 2009, 18:20
In the docs, it says "be aware that killing events may cause receiver to break one or more invariants". What does this mean exactly?

I'm posting events to the event loop in another thread of type User, and although the thread will ignore any events it considers 'obsolete', I'm thinking it would be better if I could remove events that have yet to be processed.

Will removePostedEvents() work across threads? The call would be made in a different thread to the event handler, but the same one that uses postEvent to that thread.

Qt 4.5.

andre
2nd December 2009, 18:28
http://www.qtcentre.org/forum/f-newbie-4/t-very-slow-qcoreapplicationremovepostedevents-in-qt-46-26203.html

can somebody check this please. I posted in the wrong forum obviously. is this a bug?

squidge
2nd December 2009, 18:55
I'm using 4.5, not 4.6, so your link is not relevant.