I have a question.
There are two classes: A and B. A creates object of type B. So from A, it is easy to access methods of B, but how can I access methods of object A from object B? I am trying to use bidirectional signal-slot mechanism in Qt. A can easily have a slot for a signal in B, but B cannot see signals in A.
I have a vague idea that somehow the creator class can be referenced as a ‘member’ while an object is being created, but I am not sure how to do code this.
Thanks in advance.
Pass the creator as an argument to the constructor:
Use as: