Results 1 to 18 of 18

Thread: how to find all signals connected to specific slot

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    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

    Ok, I have a lot of different devices (with different protocols) connected to a single serial port. Thread class that works with serial port emits signals when data is received, and has a slot for sending data. All devices have signals for sending and slots for receiving data. Device paired with port "exchanges" send and receive signals and slots. Because of the number of devices there is allways some activity on port, i want to monitor comunication for specific device, that is idle most of the time. I have a simple widget, created on demand, with log window that shows communication lines like
    timestamp <- "data recevied"
    timestamp -> "data sent"
    when i create this monitoring widget i connect it with serial port and show all communication
    too much communication makes it hard to catch the lines of this, almost idle, device
    i wanted to connect this widget with that specific device so that i can view only what is this device sending and receiving
    and i wanted my widget to be universal for monitoring any kind of communication
    As i said, i have a working solution, but i dont like that i have to edit classes for all devices, and to add a new "dataReceived" signal
    If it would be possible to "duplicate" connections of one specific receive slot, to another receive slot (of widget), that would solve my problem easy.
    Now i have to edit class files for all devices to implement this new behaviour, to reemit signal when data is received, for monitoring widget (if there is one attached).
    I just had a feeling that i could do this without editing the device class, and with having only the pointer of the device before showing the widget.
    I hope that this explanation didn't isnt unclear as previous ones.

    summary: i need to filter comunication from specific serial port, and tho show data for and from a specific device connected to it.
    Last edited by davidovv; 16th April 2012 at 17:40.

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.