QT: QFileSystemModel _q_fileSystemChanged slot is executed on the UI thread which contradicts docume
来源:互联网 发布:英国那些事儿知乎 编辑:程序博客网 时间:2024/05/06 08:08
http://stackoverflow.com/questions/4055726/qt-qfilesystemmodel-q-filesystemchanged-slot-is-executed-on-the-ui-thread-whic
QFileIconProvider
uses QIcon
to represent icons and QIcon
can only be used in the UI thread. QImage
seems to be the only class allowed to use in other threads, but I think it may be to expensive to use QImage
in the background thread and convert it to an QIcon
in the UI thread.
So it is possible that the platform implementation of QFileIconProvider
is slow on network paths under some circumstances and therefore slows down the UI main thread.
I don't know if this is the source of your problem, but at least this should be the reason why _q_fileSystemChanged()
is called within the UI thread.
- QT: QFileSystemModel _q_fileSystemChanged slot is executed on the UI thread which contradicts docume
- How main() is executed on Linux
- How main() is executed on Linux
- How main() is executed On Linux?
- How main() is executed on Linux
- How main() is executed on Linux
- which returns the pathnames of the files (or links) which would be executed in the currente
- Caused by: The Result type [json] which is defined in the Result annotation on the class
- Finally,Which light is on?
- qt 之 QFileSystemModel
- qt 之 QFileSystemModel
- (前端)警告:Synchronous XMLHttpRequest on the main thread is deprecated
- 说说libc --有关 How main() is executed on Linux
- iOS9 This application is modifying the autolayout engine from a background thread, which
- This application is modifying the autolayout engine from a background thread, which can lead to engi
- iOS9 This application is modifying the autolayout engine from a background thread, which
- 崩溃问题:iOS9 This application is modifying the autolayout engine from a background thread, which
- This application is modifying the autolayout engine from a background thread, which can lead to engi
- HDU 2.1.1 最小公倍数
- 练习---two sum
- 人脸图像 识别处理 数据库
- 数据库性能优化之--SQL硬编码
- 有点坑爹的GDALComputeRasterMinMax函数
- QT: QFileSystemModel _q_fileSystemChanged slot is executed on the UI thread which contradicts docume
- [Apache commons系列]DBUtils 示例代码
- 内核页表中是否存前896M的物理内存和虚拟地址之间的映射关系
- Android界面跳转与数据传递
- linux下利用gsoap实现webservice通信方法详解
- Popush代码学习报告
- Android笔记之高德地图定位(通过开启服务发送广播用handle消息机制更新位置信息)
- windows添加系统激活码命令
- DBCP 数据库连接池配置