It was missing the include <QMetaType> indeed.

Thanks a lot, wysota !

P.S. The error description could be just a little more specific...