it may be that the QT header versions don't match up
double check the QT_VERSION_STR
in QtCore/qglobal.h
for a quick check if you are too lazy add a #pragma message("QT version: " QT_VERSION_STR)
to the code to have the compiler output it while compiling