^NyAw^
10th January 2008, 16:46
Hi,
I have a own class that I need to emit using a signal. The problem is:
class classA
classA::classA()
{
}
public slots:
void aSlot(myClass&);
class classB: public classA
classB::classB()
{
bool bC = connect(pClassC,SIGNAL(aSignal(myClass&)),this,SLOT(aSlot(myClass&));
//This returns me "true"
};
classC* pClassC;
classA is a base Class. Has the slot to be called.
classB is derived from classA. Conects the classC signal with parent slot.
classC is a class that do something and emits a signal.
I had this working by passing the objects as value, but now, passing them by reference, the slot is not called.
Any idea what is happening?
Thanks,
I have a own class that I need to emit using a signal. The problem is:
class classA
classA::classA()
{
}
public slots:
void aSlot(myClass&);
class classB: public classA
classB::classB()
{
bool bC = connect(pClassC,SIGNAL(aSignal(myClass&)),this,SLOT(aSlot(myClass&));
//This returns me "true"
};
classC* pClassC;
classA is a base Class. Has the slot to be called.
classB is derived from classA. Conects the classC signal with parent slot.
classC is a class that do something and emits a signal.
I had this working by passing the objects as value, but now, passing them by reference, the slot is not called.
Any idea what is happening?
Thanks,