Re: [ROOT] cant connect slot to THIS pointer ?

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Feb 21 2002 - 16:04:56 MET


Hi Joel,

 did you create a dictionary for MyClass?

Cheers, Fons.



On Thu, 2002-02-21 at 15:58, Joe Robe wrote:
> Hi Rooters,
> 
> I dont get signal/slot mechanism to run, I always get error message TQObject::CheckConnenctArgs slot SlotTest() does not exist.
> 
> I only see any special requirements for SIGNALS but not for slots, so ANY class method should be a slot or ??
> 
> Maybe one cant connect via this pointer ??? I tried :
> 
> MyClass::SomeMethod()
> {
> TTimer* Timer=new TTimer(2000);
> Connect(Timer, "Timeout()","MyClass",this, "SlotlTest()");
> }
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



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