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. How to track SIGNAL(s) ?

How to track SIGNAL(s) ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 533 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    I may have asked this before, if so just humor me.

    I did some limited research and found this

    If you need real time feedback on console, you can check then implementation of QTest. There is a -vs command line switch (Qt doc) which enables all signals printout on console (or you can just run your QTest tests with -vs switch, if you need the signals info only in tests, not in actual application).
    

    I can add QTest but "adding -vs to command line " is a mystery.

    I have this in .pro file

    # disable all warnings add 25/11/2020
    QMAKE_CXXFLAGS += -w
    # -vs QTest invalid option ??
    

    and -vs is "invalid option "

    how do I implement QTest ?
    and is there as resource / tutorial on how to actually code QTest for specific, desired SIGNAL?

    I assume that it is not too practical to have ALL SIGNALS / events display on console.

    Cheers

    JonBJ 1 Reply Last reply
    0
    • A Offline
      A Offline
      Akashbro120
      Banned
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • A Anonymous_Banned275

        I may have asked this before, if so just humor me.

        I did some limited research and found this

        If you need real time feedback on console, you can check then implementation of QTest. There is a -vs command line switch (Qt doc) which enables all signals printout on console (or you can just run your QTest tests with -vs switch, if you need the signals info only in tests, not in actual application).
        

        I can add QTest but "adding -vs to command line " is a mystery.

        I have this in .pro file

        # disable all warnings add 25/11/2020
        QMAKE_CXXFLAGS += -w
        # -vs QTest invalid option ??
        

        and -vs is "invalid option "

        how do I implement QTest ?
        and is there as resource / tutorial on how to actually code QTest for specific, desired SIGNAL?

        I assume that it is not too practical to have ALL SIGNALS / events display on console.

        Cheers

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @AnneRanch said in How to track SIGNAL(s) ?:

        and is there as resource / tutorial on how to actually code QTest for specific, desired SIGNAL?

        I have not used it myself, but have you seen QSignalSpy Class, which allows you to track selected signals? So far as I know, that only requires

        Header: #include <QSignalSpy>

        qmake: QT += testlib

        1 Reply Last reply
        2
        • A Offline
          A Offline
          archi1491
          Banned
          wrote on last edited by archi1491
          #4
          This post is deleted!
          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