QThread is properly forward declared in qobject.h. I'm suspecting the problem is where qobject.h is included from. Can you show FTClient.cpp (and .h if there is such)?