spraff
18th November 2008, 13:35
Not a Qt-specific question, but here's a funny compiler error:
error: no matching function for call to ‘QCoreApplication::sendEvent(QWidget*, QMouseEvent*&)’
/usr/include/qt4/QtCore/qcoreapplication.h:214: note: candidates are: static bool QCoreApplication::sendEvent(QObject*, QEvent*)
Since QWidget is a QObject and QMouseEvent is a QEvent, why is my compiler (gcc 4.2.4) complaining?
Thanks
error: no matching function for call to ‘QCoreApplication::sendEvent(QWidget*, QMouseEvent*&)’
/usr/include/qt4/QtCore/qcoreapplication.h:214: note: candidates are: static bool QCoreApplication::sendEvent(QObject*, QEvent*)
Since QWidget is a QObject and QMouseEvent is a QEvent, why is my compiler (gcc 4.2.4) complaining?
Thanks