我尝试将 Qt 与 CLion 一起使用。我的问题是 qDebug() 不打印任何内容,但 qInfo()、qWarning()、qCritical() 和 qFatal() 效果很好。这是我的示例代码:
#include <QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[]) {
QCoreApplication a(argc, argv);
qDebug() << "This will not appear";
qInfo() << "This will appear";
qWarning() << "This will appear too";
qCritical() << "This will appear too";
return a.exec();
}
规范:
- Qt:5.5.1
- GCC:5.3.1(64 位)
- CMake:3.3.2
- CLion:1.2.2
最佳答案
关于c++ - qDebug() 不打印任何东西,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34355549/