Results 1 to 6 of 6

Thread: Signal array? [SOLVED]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    USA
    Posts
    142
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android
    Thanks
    24
    Thanked 2 Times in 2 Posts

    Question Signal array? [SOLVED]

    Is such a thing possible? I'd like to have an arbitrary plugin that has a vector of signals, which would directly connect to a large number of slots on stuff that it would know nothing about.

    Think of it like this:
    Qt Code:
    1. +-----------+
    2. | | +----------+
    3. | |-----| |
    4. | Object A | | Object B |
    5. | | | |
    6. | | +----------+
    7. +-----------+
    8. |
    9. |
    10. +----------------------+
    11. | |
    12. | Objects C,D,E,F,G... |
    13. | |
    14. +----------------------+
    To copy to clipboard, switch view to plain text mode 
    Basically, object A initializes a plugin (Object B), which actually acts as an input device to directly activate an "activate" slot on an a single plugin from an arbitrary-sized number of other plugins (C, D, E, F, G...). Object A would make the connections, then let the signals from B reach the appropriate slot in a given destination.

    Unfortunately, I cannot think of a way to describe this using the Qt syntax for signals and slots. Is such a thing possible?
    Last edited by KShots; 16th April 2007 at 20:00. Reason: Solved
    Life without passion is death in disguise

Similar Threads

  1. Replies: 3
    Last Post: 15th April 2007, 19:16
  2. Problem in converting QString to QChar array?
    By KaKa in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2007, 00:38
  3. Replies: 2
    Last Post: 17th May 2006, 21:01
  4. How to create QPixmap from unsigned character array?
    By rashidbutt in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 18:25
  5. no such signal QListBox::currentChanged()
    By jopie bakker in forum Newbie
    Replies: 2
    Last Post: 2nd March 2006, 15:17

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.