The behaviour is best described by this line - Exclusion of .cpp and .h files cause the mocced files to be excluded from build too (QTBUG-3404) which should document the fix of the issue. However I am using the latest download version and still experience it. Any ideas? Matthias