[Qt-interest] How to queue events until I say to process them...
Eric Clark
eclark at ara.com
Tue Feb 9 21:10:29 CET 2010
Hello Everyone,
I would like to implement an event queue of some sorts that does not actually process the events until I say it can process them. I have somewhat of an idea of what I need to do. Basically, I should override the QCoreApplication::notify and instead of notifying the object immediately, post it to the object's event queue for processing when the object is ready. Before I try this, I would like to know two things:
1. When does the QEvent object actually get deleted? Is it after the call to notify? Or is it in the default implementation of notify, thus making it my responsibility to delete the event if I override QCoreApplication::notify?
2. Is there a better, or should I say a Qt, way of implementing this type of queue?
Thank You in advance!
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100209/084cead3/attachment.html
More information about the Qt-interest-old
mailing list