print() and console.log() dont print messages to my commandline
-
Hey, i have been struggling for a while fixing this problem now, my print() and console.log() dont print to my command line (I ticked "Run in commandline" in Qt creator). I am using version 6.0.2 of Qt creator and Qt6.2.2, my current machine runs Linux Fedora and I downloaded Qt over the maintenance tool.
The code is getting called 100%, from what I saw, other people had problems with this as well, they fixed it by adding
QT_LOGGING_TO_CONSOLE=1
, for me this works as well, but when using this, or the newer versionQT_LOGGING_TO_CONSOLE
I get a lot of garbage output as e.g. the following:qt.text.drawing: drawBlock 319 at QPointF(267,26) br QRectF(18,0 377x17) qt.text.drawing: drawBlock 16 at QPointF(267,26) br QRectF(0,0 395x17) qt.text.drawing: drawBlock 263 at QPointF(267,26) br QRectF(18,0 377x18) qt.text.drawing: drawBlock 319 at QPointF(267,26) br QRectF(18,0 377x17) qt.text.drawing: drawBlock 379 at QPointF(267,26) br QRectF(0,0 395x17) qt.text.drawing: drawBlock 406 at QPointF(0,0) br QRectF(0,0 929x18) qt.text.drawing: drawFrame 0 -- 406 at QPointF(0,0) qt.text.drawing: drawBlock 0 at QPointF(0,0) br QRectF(0,0 929x24) qt.text.drawing: drawFrame 16 -- 405 at QPointF(0,0) qt.text.drawing: drawBlock 16 at QPointF(267,26) br QRectF(0,0 395x17) qt.text.drawing: drawBlock 406 at QPointF(0,0) br QRectF(0,0 929x18) qt.accessibility.cache: delete - id: 2147484137 iface: QAccessibleInterface(0x3ee7b20 invalid) qt.accessibility.cache: delete - id: 2147484136 iface: QAccessibleInterface(0x3ee7a00 invalid) qtc.clangcodemodel.ipc: Hint: AliveMessage will not be printed. Force it by setting QTC_CLANG_FORCE_VERBOSE_ALIVE=1. qt.qpa.events: Event | XCB_FOCUS_OUT(10) | sequence: 1101 qt.qpa.events: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 1101 qtc.clangcodemodel.ipc: ====> DocumentVisibilityChangedMessage(, ) qtc.clangbackend.server: ########## documentVisibilityChanged qtc.clangbackend.timers: ClangCodeModelServer::documentVisibilityChanged needed 0 ms qtc.languageclient.manager: request client shutdown: "clangd" ClangCodeModel::Internal::ClangdClient(0x2df09c0) qtc.languageclient.client: shutdown language server "clangd"
Whenever I e.g. mouse my mouse, which makes the output unreadable (But when using the search tool my console provides, I can find my output from).
I hope someone here can help me, thanks in advance