【发布时间】:2013-03-12 14:31:50
【问题描述】:
我在使用 QDebug 编译代码时遇到问题,但我真的需要它。
#include <QCoreApplication>
#include <QtDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QDebug() << "hello";
return a.exec();
}
这是我在这个简单测试中遇到的错误示例: 调用 'QDebug::QDebug()' 没有匹配的函数
【问题讨论】:
-
使用
qDebug()而不是QDebug()
标签: qt5