Routing debug output to be shown on screen
-
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.
-
Thanks for the links.
I am bound to working with Qt 4.6.3 on the eLinux device.
I'll read it and may (probably will) be back with related questions. -
you're welcome.
bq. I am bound to working with Qt 4.6.3
In that case you should be able to follow my first link.Success with your project.