I’m trying to connect a close button for a dialog box in a gui to another function by

TQObject::Connect(fClose, “Clicked()”, 0, 0, “PlotHisto()”);

I have this line of code inside a DoClose() slot/function.
However, i keep getting the error:

Error in TQObject::CheckConnectArgs: slot PlotHisto() does not exist

I have a LinkDef.h file in which I have #pragma statements for each of my classes.

Have you any idea what the problem could be?



Hi Lisa,

The both 0 parameters say that the PlotHisto() is a compiled or interpreted stand-alone function. If this is not the case you need to write the class name and the pointer of the receiving object instead 0(s).

Please read about signals and slots at:

Cheers, Ilka