connect "up stream " - between class members
-
This post is deleted!
-
This post is deleted!
@AnneRanch
ForQObject::connect()
, the object hierarchy is completely irrelevant. Upstream, downstream - objects don't even have to be parents / children of each other.
As long as signatures of the signal and the slot are compatible, use
connect(sender, &SenderClass::SignalName, receiver, &ReceiverClass::SlotName);
- as said multiple times before. For reference, read this.From the code you have posted, it's not possible to figure out what you actually mean.
Please also keep in mind, that the requirement in this form is to format code. I fail to understand, why you have split it into an unformatted and a formatted part. Makes no sense. Don't do that.