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