QT QPixmap:It is not safe to use Pixmaps outside the GUI thread
来源:互联网 发布:懒人js代码 编辑:程序博客网 时间:2024/05/29 16:43
写了一个程序,用了python的threading模块新建了一个线程来做了一些显示调用。运行的时候报下面的错误:
QT QPixmap:It is not safe to use Pixmaps outside the GUI thread
百度了一下
Qt只允许主线程(也就是main函数在的那个线程)使用界面类,因为界面类不是线程安全的,不可重入,在多个线程中使用可能会出现问题,因此Qt不建议主界面线程外的线程使用图形类和调用图形类接口。否则有可能报错:<span style="font-family: 'Microsoft YaHei', SimHei, arial, 宋体; font-size: 15px;"><span style="color: rgb(255, 0, 0);">QT QPixmap:It is not safe to use Pixmaps outside the GUI thread</span> </span>
0 0
- QT QPixmap:It is not safe to use Pixmaps outside the GUI thread
- QPixmap: It is not safe to use pixmaps outside the GUI thread原因
- QPixmap: It is not safe to use pixmaps outside the GUI thread
- qt多线程编程出现QPixmap: It is not safe to use pixmaps outside the GUI thread问题
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- it is not safe to rely on the system
- It is not safe to rely on the system问题解决
- 安装错误:Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the da
- 解决php It is not safe to rely on the system's timezone settings. You are *required* to use the date.
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- It is not safe to rely on the system's timezone settings[
- It is not safe to rely on the system's timezone settings
- 使用date函数出现 It is not safe to rely on the system's time
- date(): It is not safe to rely on the system’s timezone settings
- PHP Warning: date(): It is not safe to rely on the system’s timezone settings
- C语言中EOF是什么意思?
- JQuery上传插件Uploadify的简单使用
- Opencv中的ROI介绍
- application.mk
- JAVASE eclipse中的命名
- QT QPixmap:It is not safe to use Pixmaps outside the GUI thread
- 安卓存储数据和文件系列3:SQLite数据库方式
- #已解决#如何解决ld: library not found for -lAFNetworking这个问题
- 我的IOS工程目录结构
- 读完这个我懂了JNDI
- 桶排序和基数排序
- 2010: Hardware Design Flow based on USA company
- 设计模式--简单工厂
- come on,make a date progress bar together!