[Qt-interest] How to use Windows Message System in Qt/Win Application?

Carsten Breuer CarstenBreuerQt at textwork.de
Fri Jun 11 01:01:39 CEST 2010


Hi Mathias,
hi all

>> QCoreApplication::winEventFilter ( MSG * msg, long * result );
>> and this:
>> QCoreApplication::setEventFilter ( EventFilter filter );
> Unfortunately I do not see at all how these functions help me to have 
> the Windows Event Loop running.
> Is there any example around showing some code ?

The code you have posted is not enaugh.
Is this Stemmer Imaging / Dalsa stuff?

You have to find out which message ID
is send. There should be a line like
IDS_FOOBAR   WM_USER+xxx

With this message ID you can install
a event filter that can catch the message
for you, as Robert mentioned it.

You never ever have to deal with the
windows message loop.

AFAIR, MFC packs custom messages in some
ugly defines in the header file of the class.
So look also to the header where
CIdsSimpleLiveDlg is defined.

Best Regards,



Carsten



More information about the Qt-interest-old mailing list