在我的Qt创建器应用程序中通过调用成员函数发出信号,
void MyWidget::EmitSignal()
{
emit Update();
}
Run Code Online (Sandbox Code Playgroud)
如何在调用成员函数时跟踪发出的信号?
小智 6
connect(this,&MyWdiget::Update,this,&MyWidget::SomeRecivedSlot);
Run Code Online (Sandbox Code Playgroud)
要么
connect(this,SIGNAL(Update()),this,SLOT(SomeRecivedSlot()));
Run Code Online (Sandbox Code Playgroud)
按照上面的方法,它正在工作