Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there generic logging for GUI in Qt?
Forum Updated to NodeBB v4.3 + New Features

Is there generic logging for GUI in Qt?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 885 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bowlder
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bowlder
        wrote on last edited by
        #3

        Thank you for reply! But I found that QLoggingCategory is a class in Qt5. I would like to have a solution in Qt 4.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved