slot is called multiple times when signal is emitted

后端 未结 2 861
醉话见心
醉话见心 2021-01-29 10:38

Consider functions like below:

class1::class1()
{
    class3 obj3 = new class3(this);
}
void class1::function1()
{
    class2 *obj2 = new class2();

    connect(         


        
2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 11:05

    You should only call connect once. Move your code that calls connect to a different function that is only called once.

提交回复
热议问题