[Qt-interest] How to use Windows Message System in Qt/Win Application?
Matthias Pospiech
matthias.pospiech at gmx.de
Sun Jun 20 23:21:10 CEST 2010
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])'"
Matthias
More information about the Qt-interest-old
mailing list