Sounds like you have forgotten to add Q_OBJECT-macro to your class B.