【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编程中又少不了信号与槽的关联,那么怎么解决这个问题了?咱们能够这么作:编程 一、创建一个类,(假如这个类叫Demo:public
相关文章
相关标签/搜索