Quote Originally Posted by jacek View Post
Not quite, it says:
Yes, I've missed this. Thanks for pointing me to it.

Quote Originally Posted by jacek View Post
I guess the problem is that the code generated by moc doesn't include that other header file.
No, .moc file is included in .cc file which includes all required headers. Moc generates a reference to Core::staticMetaObjec where it obviously should be Core::Particle::staticMetaObject. Very strange that it is related to Q_PROPERTY.

My original goal was to put Q_DECLARE_METATYPE into different header because I want to have a subset of my API which is independent of Qt.