Did you miss closing bracket ('}') in the marked position? Or just missed it when posting?
From my experience with C++, such strange errors usually happen when there is a syntax error somewhere, for example missing bracket, semi-colon or smt like that.
But most likely it seems that moc (qt's meta-object compiler) doesn't run when building for some reason, so C++ compiler tries to compile Qt-specific stuff and fails.
P.S. If data.h includes QtGlobal and QString there is no need to include them in m.h.





Reply With Quote
Bookmarks