阅读背景:

【Qt】Qt出现QObject: Cannot create children for a parent that is in a different thread.问题

来源:互联网 

在Qt多线程变成里面,有时候会出现QObject: Cannot create children for a parent that is in a different thread.此类错误。说到底就是信号与槽分别处于主线程和从线程,信号与槽不在一个线程上。并且在Qt编程中又少不了信号与槽的关联,那么怎么解决这个问题了?我们可以这么做:在Qt多线程变成里面,有时候会出现QObject: Cannot create childre




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: