Following example from this link: http://developer.kde.org/documentation/books/kde-2.0-development/ch03lev1sec3.html
#include
#include
It looks like moc doesn't generate code for your QObject
because you declare it in the .cpp
file. The easiest way to fix that is to move the declaration of MyWindow
to a header, and add the header to the HEADERS
list, in the .pro file:
HEADERS += yourheader.h
Then rerun qmake
.
(Please note that the KDE 2.0 book you look at is vastly outdated)