当我尝试将pixmap保存为jpg格式时,控制台会显示错误QJpegHandler: unable to write image of format 7,并且结果图像是损坏的。
如何解决这个问题?
在Windows Mobile上使用Qt 4.6.2。 在Symbian上,没有任何问题。
谢谢提前。
当我尝试将pixmap保存为jpg格式时,控制台会显示错误QJpegHandler: unable to write image of format 7,并且结果图像是损坏的。
如何解决这个问题?
在Windows Mobile上使用Qt 4.6.2。 在Symbian上,没有任何问题。
谢谢提前。
在Qt 4.6中,JpegHandler不支持写入Format_RGB16格式。您需要转换为RGB888或更好的RGB32格式。在4.7中已经修复了这个问题。
我怀疑JPEG图像插件没有与你的可执行文件链接。要查看可用的图像格式,请尝试:
QImageWriter::supportedImageFormats()
尝试将 imageformats 文件夹与可执行文件一起放在 Qt 安装目录中作为支持 DLL。