1注意点
多继承要多个public,private等关键字,不能写成:
class Qtwin: public QObject, MYwindows 请写成这样: class Qtwin : public QObject , public myWindow2 如果有对object的继承,object一定要放前边,否则会出现编译报错 moc_qt_win.cpp:67:34: error: no member named 'staticMetaObject' in 'test::Window'; did you mean simply 'staticMetaObject'?诸如此类
3派生类要写 Q_OBJECT宏 标签:staticMetaObject,多重,QT,Qtwin,继承,object,QObject,public From: https://www.cnblogs.com/8335IT/p/16878787.html