-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.11.0 Alpha
-
None
-
Kubuntu 17.10, g++ 7.2, developer build with -debug (only)
With qtbase/dev at e0b769eeda4d564178dfc12ebcefbcbbf441bbae , it seems QLoggingCategory::defaultCategory()->isDebugEnabled() is false in 5.11 by default.
std::cout << QLibraryInfo::build() << '\n';
std::cout << "defaultCategory()->isDebugEnabled(): "
<< QLoggingCategory::defaultCategory()->isDebugEnabled()
<< " isWarningEnabled: " << QLoggingCategory::defaultCategory()->isWarningEnabled() << '\n';
qDebug() << "qDebug (stream)";
qDebug("%s", "qDebug (printf)");
qWarning() << "qWarning";
qInfo() << "qInfo";
prints
Running qtbug65841_511/qtbug65841 Qt 5.11.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 7.2.0) defaultCategory()->isDebugEnabled(): 0 isWarningEnabled: 1 qWarning qInfo
Qt 5.10.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) defaultCategory()->isDebugEnabled(): 1 isWarningEnabled: 1 qDebug (stream) qDebug (printf) qWarning qInfo