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:
+-----------+
| | +----------+
| |-----| |
| Object A | | Object B |
| | | |
| | +----------+
+-----------+
|
|
+----------------------+
| |
| Objects C,D,E,F,G... |
| |
+----------------------+
+-----------+
| | +----------+
| |-----| |
| Object A | | Object B |
| | | |
| | +----------+
+-----------+
|
|
+----------------------+
| |
| Objects C,D,E,F,G... |
| |
+----------------------+
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?
Bookmarks