Feeds:
Posts
Comments

Archive for July, 2020

If you wish to have a somewhat more coloured output for your QT applications use the following pattern:

export QT_MESSAGE_PATTERN="(%{threadid}) `echo -e "\033[32m%{time h:mm:ss.zzz}%{if-category}\033[32m %{category}:%{endif} %{if-debug}\033[34m%{function}%{endif}%{if-warning}\033[31m%{backtrace depth=1}%{endif}%{if-critical}\033[31m%{backtrace depth=1}%{endif}%{if-fatal}\033[31m%{backtrace depth=1}%{endif}\033[0m \033[36m[%{file}:%{line}]\033[0m %{message}"`"

More details about what to include there are here: https://doc.qt.io/qt-5/qtglobal.html#qSetMessagePattern

The color codes can be fetched from here: https://en.wikipedia.org/wiki/ANSI_escape_code

Read Full Post »