Hi
Im trying to make a GUI with signals and slots compling against the ROOT.
The following doesnt work.
PhosNumberEntry *configIdInputPtr; //TGNumberEntry overriding the Valuchangefunction
PHOS::MainMenu::MainMenu
{
configIdInputPtr->Connect(“ValueChanged(Long_t t)”, “PHOS::MainMenu”, this,
“myslot(Long_t)”);
}
void
PHOS::MainMenu::myslot(Long_t t)
{
printf("\n myslot, HELLO WORLD\n");
}
Inside the PhosNumberEntry class the method Valuechanged is overriden like
this.
void
PhosNumberEntry::ValueChanged(Long_t t)
{
Long_t args[1];
args[0] = t;
…
Emit(“ValueChanged(Long_t t)”, args);
}
Im not running the rootcint so I don have a classdef/classimp or a Lindef file
however all the classes inherits from TQObject.
Any ideas why this doesnt work ?
best regards
Per Thomas Hille