So the problem was that the file was being compiled by the C compiler which then chocked on the C++ stuff.
Only necessary if you use C++ in these files.
Don't see why not, this is how C libraries get called after all
I guess that also works.
Well, an include doesn't have anything to do with a library being used, but if you meant how to use Qt classes, then the best way is to include the headers for those you actually need.
A module header requires the compiler to read and parse all headers of the module, increasing the build time for no gain.
Cheers,
_
Bookmarks