Lit
July 8, 2019, 11:03am
1
hello i have problem, with Aplication Output not printing like qDebug, qWarning, etc
I test it with create new Qt Widget Applictaion and add code as below on main.cpp
#include "mainwindow.h"
#include <QApplication>
#include <QDebug>
int main(int argc, char *argv])
{
qDebug() << "Debug";
qWarning() << "Warning";
qInfo() << "Info";
qCritical() << "Critical";
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
the output only
16:43:41: Debugging starts
16:43:45: Debugging has finished
how to enable this in opensuse?
Traditionally, this sort of debug output used to show up in “.xsession-errors” (or similar). But lately, some of the desktops have been redirecting this to logs. Maybe it shows up in the output of “journalctl -b”.
tsu2
July 9, 2019, 6:02pm
3
I remember there have been questions about changes in Qt Creator debugging…
Recommend searching these Forums for those posts.
TSU
Lit
July 10, 2019, 11:04am
4
nrickert:
Traditionally, this sort of debug output used to show up in “.xsession-errors” (or similar). But lately, some of the desktops have been redirecting this to logs. Maybe it shows up in the output of “journalctl -b”.
ahh you are right, the output shows in journalctl
thanks for your reply I found solution only need to add “QT_LOGGING_TO_CONSOLE=1” on env variable
sorry for create new thread about same problem i didnt mean that
thank you for the reply btw