Re: [ROOT] problem with signals in compiled guis

From: James Peachey (peachey@bigband.gsfc.nasa.gov)
Date: Thu Sep 06 2001 - 15:55:47 MEST


Hi Brett,

Thanks for the additional information. I had found some discussion
of this issue in the roottalk digest but I couldn't quite figure
out how to apply it. Having an example will probably help a lot!

Thanks again,
James

On Wed, 5 Sep 2001, Brett Viren wrote:

> Hi James,
>
> James Peachey writes:
>  > I just compiled and linked guitest.C as it appears in the tutorials
>  > directory, so probably not. However in my own code I do include
>  > a LinkDef file, and ClassDef and ClassImpQ. That should be enough,
>  > right?
>
>
> You can get guitest.C to compile and work, but since there is no
> Makefile you have to run rootcint by hand.  You need to run rootcint
> on any class's .h file which has a method that will be used as a slot,
> but you don't need Class{Def,Imp}Q nor RQ_OBJECT() macro, nor
> subclassing TQObject (for slots that is).  For signals you need some
> of these other things.
>
> For a concrete compiled example that uses Rt, look at
> test/guiviewer.{cxx,h}.  You can check the Makefile in that directory
> to see what needs to be done to make your own code work.
>
> Cheers,
> -Brett.
>



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:59 MET