[Qt-interest] Accessing Qt Event Queue (QEvent Queue)

Scott Aron Bloom Scott.Bloom at sabgroup.com
Tue Oct 27 07:54:56 CET 2009


Its possible, you will have to custom derive your own QApplication and
overload winEventFilter..

 

However, what particular win32 events are you looking for.. Usually,
most of my former MFC clients, who had such peek and get events, were
able to get rid of it completely.

 

Scott

 

From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Madepally Kiran
Sent: Monday, October 26, 2009 11:52 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Accessing Qt Event Queue (QEvent Queue)

 

Hi,

I am working on an porting an application, where I need to implement
PeekMessage (in Windows) in Qt. This checks if an event is in the event
queue and returns. Also, I need to implement a function which waits
untill a particular event is processed (GetMessage in Windows).

So, for this, I may need access to the Event Queue. I would like to know
if this is possible.

Otherwise, please suggest me if there is any other method to do the same
task.

Please also give me an example to how to use the
QAbstractEventDispatcher - and if I could use this to explicitly
maintain a seperate queue of Events which I can process using my own
class. What can I do to simplify this task.

Thanks a lot for your reply.

Regards,
Kiran

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091026/a3ee6835/attachment.html 


More information about the Qt-interest-old mailing list