Following example from this link: http://developer.kde.org/documentation/books/kde-2.0-development/ch03lev1sec3.html
#include #include
Based on andref comment just above, when everything is in one cpp file like stuff.cpp, you need to add at the end of the file:
stuff.cpp
#include "moc_stuff.cpp"
(this is with Qt 4.7.0)