[Qt-interest] How to use Windows Message System in Qt/Win Application?
Luis Lezcano Airaldi
luislezcair at gmail.com
Mon Jun 21 02:53:13 CEST 2010
El 20/06/10 18:21, Matthias Pospiech escribió:
> Carsten Breuer schrieb:
>
>> i take a closer look to the docs and
>> setEventFilter is the wrong function for this purpose.
>>
>> You need to create a derived class from QApplication
>> and then override the following virtual function:
>>
>> bool winEventFilter ( MSG * msg, long * result )
>>
>> 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.
>
> And If I try to derive from that
> QMicosPolluxController::QMicosPolluxController(QWidget *parent)
> : QWidget(parent)
> , QCoreApplication(1, "QMicosPolluxController")
>
> I have to pass parameters, which I do not know, or at least the above is
> not ok.
> "error: no matching function for call to
> 'QCoreApplication::QCoreApplication(int, const char [23])'"
>
>
Hi, I think you're looking for something like this:
http://doc.qt.nokia.com/solutions/4/qtwinmigrate/winmigrate-win32-in-qt-example.html
Hope it helps.
Regards.
More information about the Qt-interest-old
mailing list