• 5945阅读
  • 0回复

【提问】QImageReader :: imageFormat (filename) 调用问题 [复制链接]

上一主题 下一主题
离线sky_hao
 

只看楼主 正序阅读 楼主  发表于: 2005-12-13
在我们定制的Linux平台上,对jpg图片调用QImageReader :: imageFormat (filename), 返回值为空字符串(empty string),
    QT的帮助上说:
        If supported, this function returns the image format of the file fileName. Otherwise, an empty string is returned.

    同样的,对jpg图片调用 QImage :: load(filename), 返回值为false(bool 值),
    QT的帮助上说:
        Loads an image from the file fileName. Returns true if the image was successfully loaded; otherwise returns false.

但对BMP图片都是ok的,请问出现这种情况的原因到底与什么有关系?在此先谢!
快速回复
限100 字节
 
上一个 下一个