RE: Connect a signal to a slot

From: Bertrand Bellenot <Bertrand.Bellenot_at_cern.ch>
Date: Fri, 29 Feb 2008 08:19:22 +0100


Hi Melinda,  

To use signal/slots in macros, please take a look at the few example macros in $ROOTSYS/tutorials/gui...
To use signal/slots into an executable (i.e. a standalone application), you have to generate a dictionary for your class (see examples in $ROOTSYS/test) If it is not sufficient and your code still doesn't work, please send me (part of) your code, so I can take a look and give more details.  

Cheers,
Bertrand.


From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Melinda Siciliano
Sent: Thursday, February 28, 2008 10:27 PM To: roottalk_at_root.cern.ch
Subject: [ROOT] Connect a signal to a slot

Hi Rooters,

I'm writing a GUI and I would like to create a certain number of TGComboBox objects depending on a certain value of a prevoius selection in another TGComboBox. I create the method UpdateCombos(Int_t selection) but I'm not able to connect it. When I start the GUI I obtain the message that the slot UpdateCombos(int) doesn't exist. Is there someone that can suggest me how to do to connect in a correct way the signal to the slot?

Thanks,

Melinda

Received on Fri Feb 29 2008 - 08:19:28 CET

This archive was generated by hypermail 2.2.0 : Fri Feb 29 2008 - 17:50:01 CET