Re: [ROOT] how to handle mouse events in root

From: Brett Viren (bv@bnl.gov)
Date: Wed Jul 31 2002 - 19:13:28 MEST


Jo Schambach writes:
 > 
 > void exec4event(Int_t event, Int_t x, Int_t y, TObject *selected)
 > {
 >    TCanvas *c = (TCanvas *) gTQSender;
 >    printf("Canvas %s: event=%d, x=%d, y=%d, selected=%s\n",
 >           c->GetName(), event, x, y, selected->IsA()->GetName());
 > }
 > 
 > void QtRoot::init() // the constructor of QtRoot calls this function
 > {
....
 > 	rc1->Connect("ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", 0, 0,
 > 		     "exec4event(Int_t,Int_t,Int_t,TObject*)");
 >     }
 > }
 > 
 > 
 > This code compiles correctly, but when I run the application, I get the
 > following message:
 > 
 > Error in <TQObject::CheckConnectArgs>: slot exec4event(int,int,int,TObject*)
 > does not exist

Did you run rootcint in order to create a dictionary entry for
exec4event()?

-Brett



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:02 MET