Non-existence of slots

Hi,

I have a standalone version of a gui, example2a, but keep getting the error:

TQObject::CheckConnectArgs: slot DoDraw() does not exist

I have a LinkDef.h file, which consists of

#ifdef CINT
#pragma link C++ class MainFrame;
#endif

Any ideas where I am going wrong?

Thanks,

Lisa

Hi Lisa,

If you are getting the following message:
Error in TQObject::CheckConnectArgs: slot DoDraw() does not exist
it is very likely that you forgot to change the class name on the line:
draw->Connect(“Clicked()”, “MyMainFrame”, this, “DoDraw()”);
to MainFrame as I could gess from the LinkDef file.

Best regards, Ilka