[SOLVED]"catch" a custom signal emited by a promoted widget inside the Ui
Hello.
I have class A and in the a.ui i insert a widget(Class W). User the promotion aproach here.
Both were created using a.h, x.cpp and x.ui.
I created mySignal(QString &) in w.h and then emit(mySignal("Hello") somewhere in the w.cpp.
Can i receive this SIGNAL at the base class A?
Thanks
Re: "catch" a custom signal emited by a promoted widget inside the Ui
Well your description is very confusing.... Did you search
Code:
A::A(){
connect(ui.
w,
SIGNAL(mySignal
(QString &)),
this,
SLOT(mySlot
(QString &)));
}
Re: "catch" a custom signal emited by a promoted widget inside the Ui
Quote:
Well your description is very confusing....
I agree on this :)
But looking at your line of code i realised what i was doing wrong.
Thanks