I currently have a terribly nasty problem when developing programs using Qt and Qt Creator. Whenever I try to use qDebug()with QCoreApplicationor QApplicationcreated before use qDebug(), there is no conclusion whether I run the program in Qt Creator or from a regular shell (I use Fedora Linux by the way). For example, even the following simple code does not work:
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "TestOutput!" << endl;
}
Does anyone know what to do with this problem? Thanks in advance, Marius
source
share