there are many reasons,please check 1,did it have Q_OBJECT macro and success created the moc cpp file? 2, did add dependenct library if it comes from another project? 3, did the class exported if it comes from another dynamic library?