在我的Qt创建器应用程序中,通过调用成员函数来发出一个信号。
如何在调用成员函数时跟踪发出的信号?
void MyWidget::EmitSignal()
{
emit Update();
}
如何在调用成员函数时跟踪发出的信号?
void MyWidget::EmitSignal()
{
emit Update();
}
connect(this,&MyWdiget::Update,this,&MyWidget::SomeRecivedSlot);
connect(this,SIGNAL(Update()),this,SLOT(SomeRecivedSlot()));