Just in case you did not know this:
You can connect signals to signals. That's called signal forwarding.
So all you need to do is declare additional signals for each signal you want to forward in your widget1 and widget2 classes.
in the constructor of widget1 you could then put code like:
connect( child1, SIGNAL( somesignal() ), this, SIGNAL( forwarded_somesignal() ) );
connect( child1, SIGNAL( somesignal() ), this, SIGNAL( forwarded_somesignal() ) );
To copy to clipboard, switch view to plain text mode
Bookmarks