QT不同线程之间emit信号。信号和槽函数定义在主线程中。子线程给主线程发送信号。

参见:E:\svnroot\20190408_KDM201_D02P_V1R3\30-Client\D02PDW\source\cu.cpp

connect(this, SIGNAL(signalShowError(u32, std::string)), this, SLOT(ShowError(u32, std::string)), Qt::BlockingQueuedConnection);//不同线程

 

osp线程发送信号到界面主线程。

Qt::BlockingQueuedConnection

https://blog.csdn.net/luotuo44/article/details/39395025

posted @ 2019-05-06 15:16  damoying  阅读(4303)  评论(0编辑  收藏  举报