Re: Nested signals and slots
Quote:
Originally Posted by vishva
Can you tell me ,what is the problem in nested signals and slots ?
The problem is that you are forming a new connection every time the fun1() slot is called. The old connections naturally remain unless you disconnect them.
I'm not sure what are you trying to achieve, but maybe you need something like this:
Code:
void Sample::fun1()
{
disconnect(&object,SIGNAL(clicked()),this,SLOT(fun1() ));
connect(&object,SIGNAL(clicked()),this,SLOT(fun2() ));
}
Re: Nested signals and slots
hi jpn,
i sloved that problem using disconnect() in fun2(). so it works fine.
Thanks