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. Checking signal if it was emitted?
Forum Updated to NodeBB v4.3 + New Features

Checking signal if it was emitted?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 5.6k 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.
  • N Offline
    N Offline
    never_ever
    wrote on last edited by
    #1

    Hi,
    If there is any way to check if signal was emitted? I want to do this because I have signal-slot connection and it doesn't work - as if signal wasn't emitted. Signal is from library and then my slot should work but it's not.
    Or is there something to checking emitting signals?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      butterface
      wrote on last edited by
      #2

      If all conditions are met for the path where the signal should be emitted it is.
      What you can try is

      • Check connect is called before the signal is emitted
      • Check whether the connect returns true or not
      • If you use custom types check if they are registered as meta type
      1 Reply Last reply
      0
      • A Offline
        A Offline
        Asperamanca
        wrote on last edited by
        #3

        You can also:

        • Debug into the emit statement, and see where it goes
        • Attach a QSignalSpy and check the list of emitted signals
        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