Skip to content

How to retrieve console.log() calls emitted from QML? #145

Closed Answered by omix
Cuberootex asked this question in Q&A
Discussion options

You must be logged in to vote

QML console logs are realized as Qt debug messages, i.e. similar to qDebug() << "I finished loading". In Java the behavior is different on various platforms. On Windows the messages are not printed to standard out by default. But you can install a message handler and forward the messages: QLogging.qInstallMessageHandler((type,context,message)->System.out.println(message));.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by omix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants