connect成功后emit信号后,槽函数仍无法运行的奇葩问题

信号的声明:

void sig(string value);

槽信号声明:

static void mySlot(string value);

connect代码:

bool isc=connect(&testingThread,&thread::sig,this,&myControl::mySlot);

调试后isc为true,但mySlot函数一直无法运行

把参数改为QString则可以了,这问题。。。

posted @ 2022-01-11 18:18  出门必戴双肩包  阅读(277)  评论(0编辑  收藏  举报