会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
DengHaoyu
Set Sail!
博客园
首页
新随笔
联系
订阅
管理
2021年8月15日
QT报QObject: Cannot create children for a parent that is in a different thread.
摘要: 今天在写多线程程序启动socket的时候,出现了这样的错误。 其原因是Qt中,不同线程中初始化的对象只能在该线程中使用,而不能在其他线程中使用。由于我写了如下代码: private: qintptr socketDecriptor; int waitDuration = -1; QTcpSocket
阅读全文
posted @ 2021-08-15 23:28 DengHaoyu
阅读(1815)
评论(0)
推荐(0)
编辑
公告