QT中跨线程警告的处理

问题: 在继承于QThread的类中, 出现了QUdpSocket成员时,编译没有问题, 运行时, 出现Cannot create children for a parent that is in a different thread.多线程 理解: 继承QThread后在实现run()函数后,new多线程对象并传入this指针---注意此时的this指针是主线程的对象.函数 传入this指针--
相关文章
相关标签/搜索