Trying to compile a stand alone gui using slots. Cannot find slot!

Hey

I am trying to make a simple stand alone gui that simply returns the mouse actions from a TCanvas, but I can not get the signal/slot to work. I keep getting the infamous “Error in TQObject::CheckConnectArgs: slot exec3event(int,int,int,TObject*) does not exist” error. I can, however, not for the life of me get why. I have tried to modify $ROOTSYS/test/exec3.C and included a dictonary generation. I have attached the whole project, in the todo.sh are my dictonary generation.

Can you help me understand why it cannot find my slot?

// JJ
test.tar.gz (42.8 KB)

Hi,

There is indeed a weird issue… We are investigating and let you know as soon as we find a fix.

Cheers, Bertrand.

Hi,

So you cannot use a global function as slot (with ROOT 6) for the time being (there is already a Jira ticket open for this issue). One possible solution would be to create a simple class holding the method(s) to be used as slot(s).

Cheers, Bertrand.

Arh thanks. Finally got it to work with a simple class!