Results 1 to 18 of 18

Thread: how to find all signals connected to specific slot

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    65
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android
    Thanks
    10
    Thanked 4 Times in 4 Posts

    Default Re: how to find all signals connected to specific slot

    I was thinking "the other way round"
    First to create abstract class observableDevice,
    all devices should inherit from this one,
    the logwidget can take observableDevice as argument in constructor,
    and in constructor i can connect apropriate signals and slots

    This example is looks interesting.
    If i understand well, you suggest that i insert new layer (CommunicationControler) between devices and ports,
    devices now comunicate only with controllers, controllers are observable,
    log widget observes controller not device as i thought (with extra conditions if needed),
    and, what is important, no source file for device is changed, just their connections moved to controllers.

    I will definitly look more into this example, thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: how to find all signals connected to specific slot

    Quote Originally Posted by davidovv View Post
    This example is looks interesting.
    If i understand well, you suggest that i insert new layer (CommunicationControler) between devices and ports,
    devices now comunicate only with controllers, controllers are observable,
    log widget observes controller not device as i thought (with extra conditions if needed),
    and, what is important, no source file for device is changed, just their connections moved to controllers.
    It's hard to call it a layer, it's not above or between anything. It's more of a side block.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 26th August 2011, 08:51
  2. find connected network devices
    By Remco in forum Qt Programming
    Replies: 4
    Last Post: 9th September 2010, 09:03
  3. Connected QTimer slot not being called
    By Polnareff in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2010, 15:55
  4. Disconnect slot when another is being connected
    By holst in forum Qt Programming
    Replies: 4
    Last Post: 8th September 2009, 09:49
  5. Replies: 1
    Last Post: 6th March 2007, 15:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.