I currently have a terribly annoying problem while developing programs using Qt and Qt Creator. Whenever I try using qDebug()
with a QCoreApplication
or QApplication
instantiated before using qDebug()
, there isn't any output, whether I run the program in Qt Creator or from a normal shell(I'm using Fedora Linux btw). For example, even the following simple code fails:
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "TestOutput!" << endl;
}
Does anybody know what to do about this problem? Thanks in advance, Marius
QT_NO_DEBUG_OUTPUT
is defined in your.pro
file like thisDEFINES += QT_NO_DEBUG_OUTPUT
or you might have#define
it somewhere in your code. If it is there, remove that piece of code. – Parliamentarianism