[Interest] Qt basics - QObject::connect: signal not found

Nuno Santos nunosantos at imaginando.pt
Mon Nov 6 11:10:06 CET 2017


Hi,

I have a class B that extends A.

I’m passing a pointer of B casted to A to another C, and inside C I call:

connect(BPointerCastedToA, &A::signal, [=]() { // do something });

I’m getting "signal not found in B” error

I have similar situations in which this scenario works (B extends A and I connect B to signals of A). I can’t understand why is not working. 

What am I missing? 

Thanks!

Regards,

Nuno





More information about the Interest mailing list