登陆

python3 PyQt5 多线程报错,QObject: Cannot

错误信息如下:`QObject: Cannot create children for a parent that is in a different thread.
(Parent is QTextDocument(0x27e4150), parent's thread is QThread(0xc306a0), curre
nt thread is QThread(0xc0eca0)`
求解。。有没有遇到这种问题情况?

# Python
習慣沉默習慣沉默1617 天前342 次浏览

全部回复(1)我要回复

  • 天蓬老师

    天蓬老师2017-06-12 09:28:25

    GUI相关的对象不能在非GUI的线程创建和使用,是非线程安全的

    回复
    0
  • 取消回复发送