Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-29222

In static build, QImageReader::supportedImageFormats() result formats list doesn't contain 'jpeg'.

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.2
    • None
    • Image formats
    • None
    • static Qt build

    • 8995453263721507a4c923b905f50f800010d9ad

    Description

      If I don't try to read image, but only check in my application that I can read some image formats results of QImageReader::supportedImageFormats() doesn't contain 'jpeg' extension. See code below:

      needFormats.append( "bmp" );
      needFormats.append( "gif" );
      needFormats.append( "jpeg" );
      needFormats.append( "png" );
      
      QList<QByteArray> formats = QImageReader::supportedImageFormats(); 
      for (int i = 0;i < formats.count();++i) 
      { 
        int tf = needFormats.lastIndexOf(QString(formats.at(i))); 
        if (tf >= 0)
          needFormats.removeAt(tf); 
      } 
      

      For shared build this code works fine, for static - 'jpeg' "not supported" but it is supported.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            psytonx Poul Sysolyatin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes