error: no matching function for call QDebug:: QDebug
源代码
#include “mypushbutton.h”
#include
MyPushButton::MyPushButton(QWidget *parent) :
QPushButton(parent)
{
QDebug() << “我的按钮类构造调用”;
}
MyPushButton::~MyPushButton()
{
QDebug() << “我的按钮类析构”;
}
修改
#include
QDebug() << “我的按钮类构造调用”;
QDebug() << “我的按钮类析构”;
以上三处的QDebug改为qDebug(),即可。