Connect problem

Hi,
I have two classes

class A … {
…
TGTextButton *myButton;
…
void DoStuf();
}
A::A()
{
…
myButton=new TGTextButton(…)
…
myButton->Connect(“Clicked”,“A”,this,“DoStuf()”);
…
}

class B …{
…
}

B::B()
{
…
new A();
…
}
The class A constructor create a button and connect it to the DoStuf() method

The class B create an object of the class A

The problem is that I get this Error message
in the running of the programme :

[color=red]“Error in TQObject::CheckConnectArgs: slot DoStuf() does not exist”[/color]

How can I solve this ?

Thanks in advance

Hi,

It is important to provide the code in that case - please attach a macro that reproduces what you explained.

Thank you, Ilka