在Qt中处理很大数据量大时候用到了多线程
主线程中有一个vector里面装的是指针
现在要在次线程中来创建这些指针,添加到主线的vector里面来,但是这样的话就会提示错误
QObject: Cannot create children for a parent that is in a different thread.
...全文
25613打赏收藏
qt次线程指针问题
在Qt中处理很大数据量大时候用到了多线程 主线程中有一个vector里面装的是指针 现在要在次线程中来创建这些指针,添加到主线的vector里面来,但是这样的话就会提示错误 QObject: Cannot create children for a parent that is in a different thread.