MovetoThread : Widgets cannot be moved to a new thread
来源:互联网 发布:解放号平台知乎 编辑:程序博客网 时间:2024/06/04 19:15
子QObject必须在其parent关联的线程内创建, 调用moveToThread()的对象其parent必须为0
线程关联性(Thread Affinity)
使用QObject::moveToThread()可以将QObject对象从一个线程移动到另一个线程。
i receive an error message: QObject::moveToThread: Widgets cannot be moved to a new thread
How can i solve this problem?
Thank you in advance for your answers.
You can't move widgets into another thread - in order to keep user interface responsive, Qt needs to do all GUI work inside main thread.
If you have background work to do, then move background worker to other thread, and not the user interface.
answerd by Nemanja Boric阅读全文
0 0
- MovetoThread : Widgets cannot be moved to a new thread
- The Webpage might be temporarily down or it may have moved permanently to a new web address解决
- A folder failed to be renamed or moved
- 关于“A folder failed to be renamed or moved”错误
- A folder failed to be renamed or moved.
- A folder failed to be renamed or moved
- cannot be resolved to a type解决方案
- cannot be resolued to a tpye
- httpservletrequest cannot be resolved to a type
- cannot be resolved to a type
- R cannot be resolved to a variable
- cannot be resolved to a type
- r cannot be resolved to a variable
- Intent cannot be resolved to a type
- SuppressLint cannot be resolved to a type
- R cannot be resolved to a variable
- Cocos2dxActivity cannot be resolved to a type
- R cannot be resolved to a variable
- echo mysql_affected_rows() 返回0
- 阿里云首推免费人脸识别SDK 让每个APP轻松拥有短视频AR特效
- 利用 TFLearn 快速搭建经典深度学习模型
- 9月26日云栖精选夜读:阿里Java代码规约插件即将全球首发,邀您来发布仪式现场
- 抽象类和接口的区别
- MovetoThread : Widgets cannot be moved to a new thread
- Spring Boot LocalDateTime格式处理
- Arraylist集合的简单运用
- 关于padding,margin,width用百分比表示时以什么为基准
- HDU
- 聊聊高并发系统之限流特技-1 开涛
- scp实现断点续传
- [Linux]面试可能涉及的问题
- sublime text 3 教程(3)