Qt中无法load big image的问题
来源:互联网 发布:网络主播思瑞在线 编辑:程序博客网 时间:2024/05/16 19:14
1、在Qt中,当播放一些比较大的图片时,图片无法显示,出现:QImage: out of memory, returning null image
参考 http://www.developer.nokia.com/Community/Wiki/CS001500_-_Reading_big_images_in_Qt 可以解决此问题;
使用:
QImageReader reader; reader.setFileName(path); // Read image current size QSize imageSize = reader.size(); // Scale image to fit to screen imageSize.scale(size(), Qt::KeepAspectRatio); // Set wanted image size for reader reader.setScaledSize(imageSize); // Read image QImage image = reader.read(); // Make QPixmap (if needed) m_pictureImg = QPixmap::fromImage(image);来代替
m_pictureImg.load(path);
- Qt中无法load big image的问题
- Qt load image
- Qt image load path
- msxml无法load xml文件的问题
- Unable to load image ntoskrnl.exe的问题
- qt 5.0中HeaderView的setResiziMode无法使用的问题
- qt 5.0中HeaderView的setResiziMode无法使用的问题
- qt 5.0中HeaderView的setResiziMode无法使用的问题
- Qt Qml 中Image的QSslSocket问题解决
- Qt Assistant在命令行中无法打开的问题
- QT中多线程,函数无法执行的问题
- 在配置load balance时,真实的ip在apache log 中无法记录的问题
- Qt无法调试的问题
- 使用Flex中Image组件图片无法呈现问题分析
- 使用Flex中Image组件图片无法呈现问题分析
- AXD中Load image不能用
- image load
- load image
- input_dev 结构体成员注释
- 软件随想录(local.joelonsoftware.com/wiki)-2006年09月12日 再探Ruby效能 - Ruby Performance Revisited
- MyEclipse和Eclipse在使用中的问题
- 【第六章】 AOP 之 6.6 通知参数 ——跟我学spring3
- Difference between GWAS/MAS and GS
- Qt中无法load big image的问题
- 资源
- 浙大PAT_1044:Shopping in Mars 解题报告
- sysbench的安装和使用
- input子系统学习笔记一(序)
- 如何正确地重命名Xcode项目
- WEB Server工作原理及其应用编程方法
- 拷贝构造函数第十章 Thinking inc++
- SSO单点登录解决方案