[Qt-interest] How to use Windows Message System in Qt/Win Application?
Carsten Breuer
CarstenBreuerQt at textwork.de
Mon Jun 21 23:02:05 CEST 2010
Hi Mathias,
hi all.
puuuhh... schwerer Kunde ;-).
>> The message id is in msg->msg.
> Ok that looks much better,
> however how should I create an overloaded class of a QApplication in my
> main dll class?
> Since it is a library it normaly has no QApplication.
Ok... i thought your are inside the app.
I take another look - now to the sources - and
have found the virtual function
virtual bool QWidget::winEvent(MSG *message, long *result);
If this doesn't work, then it is the best way
to create a native dummy window in your dll and
connect the message queue there.
BTW: Im not sure if the system design is right.
If you encapsulates the pollux stuff completely in
the dll, then you are right.
Best Regards,
Carsten
More information about the Qt-interest-old
mailing list