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. Log/Journal user actions/clicks
QtWS25 Last Chance

Log/Journal user actions/clicks

Scheduled Pinned Locked Moved Unsolved General and Desktop
logjournaluser actionuser clicks
6 Posts 4 Posters 858 Views
  • 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.
  • N Offline
    N Offline
    NameRakes
    wrote on last edited by
    #1

    Hi, Does Qt have the infrastructure to log or journal user actions? If so, how do I activate it? Other than users sending me the log/journal file for debugging purposes, can this be used to "replay" in the future and avoid clicking subsequently?

    Thanks.

    Pl45m4P 1 Reply Last reply
    0
    • N NameRakes

      Hi, Does Qt have the infrastructure to log or journal user actions? If so, how do I activate it? Other than users sending me the log/journal file for debugging purposes, can this be used to "replay" in the future and avoid clicking subsequently?

      Thanks.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @NameRakes

      You mean something like automation?

      There is the QTest module (https://doc.qt.io/qt-5/qtest.html) which can be used to "test" different user behavior by simulating e.g. input events, but this is more for real "testing" than using it in a "live" application.

      AFAIK Qt doesn't log clicks or keyputs somewhere unless you implement it yourself. There are notifications (signals, QEvents) when something happens, but there is no log with all actions, that happened between app start and any given time.

      • Qt Event System
        https://doc.qt.io/qt-5/eventsandfilters.html

      • https://doc.qt.io/qt-5/qloggingcategory.html

      • https://doc.qt.io/qt-5/qmessagelogger.html#details

      You could install an event filter to watch a specific QObject or your QApplication


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Qt does have such a recording system out of the box, but you can roll your own with
        https://doc.qt.io/qt-5/qsignalspy.html

        Pl45m4P 1 Reply Last reply
        1
        • mrjjM mrjj

          Hi
          Qt does have such a recording system out of the box, but you can roll your own with
          https://doc.qt.io/qt-5/qsignalspy.html

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @mrjj

          This is also part of testlib module. IDK if it's meant to be used in release builds ;-)

          Maybe @NameRakes can explain more precisely what he/she wants to log (MouseEvents?, KeyEvents?, actions performed on widgets?)


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

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

            Hi,

            QSignalSpy as well as all stuff from the QtTest module are to be used only in tests. IIRC, there's even a warning in the documentation about that.

            As for the original question, you should take a look at KDE's KUserFeedback framework. It might provide what you need.

            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
            2
            • Pl45m4P Pl45m4

              @mrjj

              This is also part of testlib module. IDK if it's meant to be used in release builds ;-)

              Maybe @NameRakes can explain more precisely what he/she wants to log (MouseEvents?, KeyEvents?, actions performed on widgets?)

              N Offline
              N Offline
              NameRakes
              wrote on last edited by
              #6

              Thanks everyone for your replies.

              @Pl45m4 @mrjj
              What I have in mind is: any event (mouse, key, actions on widgets) that changes the state of the user's data should be captured. Let me give a trivial example (one or more actions implied in each step):

              • the user reads x-y data from a file
              • the user manipulates/changes and saves the data based on some provided functionality

              Out of the box, can Qt capture this sequence of actions? As I say in the OP, the intent is to use this log/journal file to debug instead of asking the user to describe the sequence of actions, and also let the user can replay without having to take the actions again.

              Thanks again.

              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