直译是:类声明没有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();
};
2021年目标:完成新书《闻缺陷则喜》,本博客右上公告有下载、阅读链接。