直译是:类声明没有Q_OBJECT 宏。
class CError1 : public QObject {
signals:
void OnButClicked(); }; class CError2 : public QObject {
signals:
void OnButClicked(); }; class CError1 : public QObject { Q_OBJECT
signals:
void OnButClicked(); };
类声明加上Q_OBJECT就好了。
class CError1 : public QObject { Q_OBJECT
signals:
void OnButClicked(); }; class CError2 : public QObject { Q_OBJECT
signals:
void OnButClicked(); }; class CError2 : public QObject { Q_OBJECT
signals:
void OnButClicked(); };