Is there generic logging for GUI in Qt?
-
My application would like to separate the log elements for GUI and non GUI tokens. Is there generic logging classes for GUI in Qt? For example, I would like to record the checked status of checkboxs in Gui, and then reload the status next time when users restart the application. Currently qUtilities is used to logging elements for both GUI and non GUI. Do you have any good suggestion to separete them? And which logging class is the best choise in such cases?
-
Hi and welcome to devnet,
Sounds like you could be interested by "QLoggingCategory":http://qt-project.org/doc/qt-5/qloggingcategory.html and friends
Hope it helps
-
Thank you for reply! But I found that QLoggingCategory is a class in Qt5. I would like to have a solution in Qt 4.
-
Just realized something, since you want to reload your widget state, is it really logging that you want or settings ? In the second case, you have QSettings