Qt中弹出错误:ASSERT: qApp && App->thread() == QThread::currentThread()
来源:互联网 发布:手机电视遥控器软件 编辑:程序博客网 时间:2024/05/16 09:26
原因
Although QObject is reentrant, the GUI classes, notably QWidget and all its subclasses, are not reentrant. They can only be used from the main thread.
子线程中读取Qt的UI属性可以,修改不可以!
可在子线程中使用信号或事件传给主线程去修改Qt的UI
原始链接
http://www.qtcn.org/bbs/simple/?t26899.html
- Qt中弹出错误:ASSERT: qApp && App->thread() == QThread::currentThread()
- Qt qApp
- qt2.2 多线程发送消息 QThread::postEvent postEvent qApp->postEvent QApplication qt 消息
- Android 在Thread中弹出Toast
- Not on FX application thread; currentThread = * 问题的解决
- Qt中qApp
- boost::thread ASSERT(AfxGetModuleState() != AfxGetAppModuleState()); // 在这一句发生断言错误
- Thread.currentThread().isInterrupted()
- Thread.currentThread.interrupt()
- Thread.currentThread().getName()…
- Thread.currentThread().getContextClassLoader().getResourceAsStream
- Thread.currentThread().getContextClassLoader()
- Thread.currentThread().getName()
- Thread.currentThread.interrupt()
- Thread.currentThread().getContextClassLoader().getResourceAsStream
- Thread.currentThread().getContextClassLoader().getResourceAsStream
- Thread.currentThread().getContextClassLoader().getResourceAsStream
- this与Thread.currentThread
- MFC 句柄管理 CHandleMap
- 深入浅出VC++串口编程--短信应用开发
- 嵌入式Linux知识:S3C2440上 MMC/SD卡驱动实例开发讲解(2)
- 六妙招让死钱变活钱[转]
- fcntl和flock两个系统调用的区别
- Qt中弹出错误:ASSERT: qApp && App->thread() == QThread::currentThread()
- 异步消息的传递-回调机制
- YUV420P的格式以及转换为RGB565的代码(Android摄像头的输出一般为YUV420P)
- windows编程基础
- Window服务
- MySQL安装 For win
- gevent 安装
- gridview合并单元格
- kernel内核中处理器类型的定义mach-types.h文件的生成