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. Check if slot has input

Check if slot has input

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 205 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.
  • L Offline
    L Offline
    Linhares
    wrote on last edited by
    #1

    How can I check if there's at least one signal connected to a particular slot?
    I have a graph object that has 20 slots. Each slot might have a signal connected to it, but not necessarily. The object also has a legend that should show the title only of the slots that actually have something connected to them. However, the titles should be correctly displayed before the data stream starts (i.e. before the slots get any information from the source objects). Is this possible at all?

    JonBJ 1 Reply Last reply
    0
    • L Linhares

      How can I check if there's at least one signal connected to a particular slot?
      I have a graph object that has 20 slots. Each slot might have a signal connected to it, but not necessarily. The object also has a legend that should show the title only of the slots that actually have something connected to them. However, the titles should be correctly displayed before the data stream starts (i.e. before the slots get any information from the source objects). Is this possible at all?

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

      @Linhares
      You can find out about connected slots through the meta layer, but you should not. Your signallers should not know or care about any slotters.

      If you really need to do what you say, when a caller connects a slot to an object's signal why not call a method in the signaller to let it know you want a title displayed, or whatever.

      1 Reply Last reply
      1

      • Login

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