文章详情页
python3 PyQt5 多线程报错,QObject: Cannot
浏览:35日期:2022-06-29 08:53:20
问题描述
错误信息如下:`QObject: Cannot create children for a parent that is in a different thread.(Parent is QTextDocument(0x27e4150), parent’s thread is QThread(0xc306a0), current thread is QThread(0xc0eca0)`求解。。有没有遇到这种问题情况?
问题解答
回答1:GUI相关的对象不能在非GUI的线程创建和使用,是非线程安全的
排行榜