QT 5.0 QDebug 编译错误 [英] QT 5.0 QDebug compilation error
本文介绍了QT 5.0 QDebug 编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在用 QDebug 编译代码时遇到问题,但我真的需要它.
I am having trouble compiling my code with QDebug, but i really need it.
#include <QCoreApplication>
#include <QtDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QDebug() << "hello";
return a.exec();
}
这是我在这个简单测试中遇到的错误示例:没有匹配的函数调用'QDebug::QDebug()'
This is an example of the error i got on this simple test: no matching function for call to 'QDebug::QDebug()'
推荐答案
试试这个:
qDebug() << "hello";
这篇关于QT 5.0 QDebug 编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文