Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.9.2, 5.9.3
-
None
-
Kubuntu 17.10
Qt 5.9.2 and 5.9.3
Description
When using
QLoggingCategory::setFilterRules(QStringLiteral("qt.scenegraph.*=false"));
to prevent renderloop debug messages flodding logs all qDebug() stopped work
example main.cpp:
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QDebug> #include <QLoggingCategory> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; QLoggingCategory::setFilterRules("*.debug=true"); qDebug() << "this is shown"; QLoggingCategory::setFilterRules(QStringLiteral("qt.scenegraph.*=false")); qDebug() << "this is not shown"; if (engine.rootObjects().isEmpty()) return -1; return app.exec(); }