在我的 Qt Creator 应用程序中,我通过调用成员函数发出信号,
void MyWidget::EmitSignal()
{
emit Update();
}
如何在调用成员函数时跟踪发射信号?
最佳答案
connect(this,&MyWdiget::Update,this,&MyWidget::SomeRecivedSlot);
或
connect(this,SIGNAL(Update()),this,SLOT(SomeRecivedSlot()));
Follow the above methods and it is working
关于c++ - 如何在 Qt Creator 中捕获同一类中的发射信号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33952654/