Routing debug output to be shown on screen
Mobile and Embedded
5
Posts
2
Posters
2.8k
Views
1
Watching
-
Hi
I am working with an embedded device on Linux. I have debug output from linux (native c applications) as well as from Qt (GUI) on the serial console port .. as usual.
Is there a way to have all the debug output being catched by Qt and then route/show it on the GUI in a textbox or alike?
This would be a tremendous help for debugging devices in the field.Thanks
McL -
Have a look at "this wiki":http://qt-project.org/wiki/Browser_for_QDebug_output
Happy coding!
-
Seems it's based on obsolete code from Qt4. (but still supported for now)
"This replaces the old principal function":http://qt-project.org/doc/qt-5/qtglobal.html#qInstallMessageHandler
Hope it helps.