How to enable the qt.scenegraph.general logging category?
Solved
General and Desktop
-
From http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html:
"To verify which render loop is in use, enable the qt.scenegraph.general logging category."How does one do this, though? If I add
Q_LOGGING_CATEGORY(QSG_LOG_INFO_GENERAL, "qt.scenegraph.general")
to main.cpp, it does nothing. I tried setting QSG_INFO to 1 and that did print out a bunch of log info. But I'm curious as to how to get this via the logging category.
-
Hi,
Put
QLoggingCategory::setFilterRules("qt.scenegraph.general=true");
just after the QApplication creation.
Hope it helps