Qt's qDebug() does not work as expected out of the box
Hi all :-)
I noticed that qDebug() does not work as it should by default: It does not print strings, and it does not set newlines correctly.
After some internet search, I found out that this can be fixed by setting an environment variable:
export QT_ASSUME_STDERR_HAS_CONSOLE=1
does the trick.
Now I wonder why this happens (I didn't see this on Gentoo and Debian). In the following SO question: https://stackoverflow.com/questions/26295325/ , a user writes:
So … is this a bug or a feature?! ;-) Is Qt on Artix actually compiled with the -journald option? If so: why? If not: what causes this?
Maybe, we can fix this to make qDebug() work out of the box?