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

QImage::convertToFormat gives wrong result on iOS when linking QtMultimedia

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 5.15.18
    • 5.15.16
    • GUI: Other
    • None
    • iOS/tvOS/watchOS
    • c2fbce200 (tqtc/lts-5.15)

    Description

      When building for iOS (Qt 5.15.16, Xcode 15.1, iOS 17.2) and linking QtMultimedia,
      convertToFormat(QImage::Format_RGB888) gives wrong results: The red and blue components are switched, so it actually converts to BGR instead of RGB.
      In the attached minimal example, a red image should be displayed, but it appears blue.

      When removing `multimedia` from the `QT +=` line, it's displayed correctly. Note there's no explicit use of QtMultimedia in the example.

      I've been told this only happens with Xcode 15 (I cannot test Xcode 14 right now as it doesn't run on macOS Sonoma).

      Attachments

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

        Activity

          People

            frank.osterfeld Frank Osterfeld
            frank.osterfeld Frank Osterfeld
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes