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);//不同线程
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
osp线程发送信号到界面主线程。
Qt::BlockingQueuedConnection
https://blog.csdn.net/luotuo44/article/details/39395025

更多精彩