Qt Logging has been disabled. `qtlogging.ini` needs to be fixed

Context: qDebug() not working. | Qt Forum

The current qtlogging.ini for Fedora 41 has the following content

[Rules]
*.debug=false
qt.qpa.xcb.xcberror.warning=false

The user was able to get qDebug working by changing it to

[Rules]
qt.*=false
*.debug=true
qt.*.debug=false
qt.qpa.xcb.xcberror.warning=false

I have confirmed it on my end, this is the fix. Thank you.

I would have thought that debug should be off by default.
Then if a developer needs debug they turn it on.

I have not looked but I assume there is a way to override the system’s defaults without editing the system qtlogging.ini.

That does make sense. I was able to get logging by setting environment variable QT_LOGGING_RULES.

For future reference - c++ - Qt qDebug not working with QConsoleApplication or QApplication - Stack Overflow.

You can mark this as solved. Thank you :slightly_smiling_face:.

You need to mark a reply as the solution.
I cannot do that for you. I think it’s the tick icon.

1 Like