Signal to other class



Hi everyone,

I'm new with this signal stuff and maybe I'm zone out but is it possible to create a signal that calls a function from other class?

Like that:

FunctionB::FunctionB()
{   
...
  button.signal_clicked().connect(sigc::mem_fun(*this, &FunctionA::onButtonClick));
...
}


FunctionA::FunctionA()
{   
...
...
}

FunctionA::onButtonClick()
{   
   std::ccout  << "TESTE" << std:endl;
}

--
P.F.Smorigo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]