We have a GUI, in that GUI we have an object of Class A. In the instance of Class A we have a member instance Class B.
How would you connect a signal from the GUI to the SLOT of Class B.
My fast and dirty sollution would be to forward the "this-ptr" of GUI to Class A
and make there the connection.
But what it we have n sub-objects?
Is there clean way of doing this?
EDIT:
Maybe a Signal (GUI) ->Signal (ClassA) -> SLOT (Class B) connection?
This looks much better.
Bookmarks