To me it seems you took some files from Qt sources, copied them to your project and tried to compile. This won't work, don't even try it - you have to link to Qt as a whole, you can't extract one or two classes from it.