Re: connecting signals & slots

From: Ilka Antcheva <Ilka.Antcheva_at_cern.ch>
Date: Thu, 25 Jan 2007 18:22:37 +0100


Hi Roger,

Slot methods can have equal or less parameters then the signal methods to which they are connected. The order and the type of slot parameters should follow those in the signal method. You have to find another way of passing all parameters you need. For an example you may see the code of TFitEditor (the new fit panel interface in ROOT at http://root.cern.ch/root/htmldoc/TFitEditor.html)

Cheers, Ilka

Roger Mason wrote:
> Hello,
>
> I need to connect a signal (from a TGButton "Fit") to a slot (something
> like DoFit()) passing a load of arguments. The arguments will need to
> consist of the starting parameters for the fit and, presumably, the
> TGraph containing the data to be fitted and the TF1 that represents
> the summ of the fit functions.
>
> I have looked through the tests and tutorials but did not find an
> example close to what I need.
>
> Thanks for any help,
>
> Roger
>
>
Received on Thu Jan 25 2007 - 18:25:19 CET

This archive was generated by hypermail 2.2.0 : Mon Jan 29 2007 - 17:50:00 CET