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

Inconsistent XPM handling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.10, 5.15.2
    • 5.15.1
    • Image formats
    • None
    • $qmake --version
      QMake version 3.1
      Using Qt version 5.15.1 in /usr/lib

      $cat /etc/issue
      Arch Linux \r (\l
    • Linux/X11
    • 6f2c7469f86785e6ba81fe0280210ef7275099de (qt/qtbase/dev) fa7a83953047fa79c27dc8e5bb9d42cb07fe2b7f (qt/qtbase/5.12) 550bac1f87f15deaaa7a5f2e47f3af159218bab2 (qt/qtbase/5.15)

    Description

      Hi,

       

      saving a QImage in XPM format then loading the saved XPM image results in warnings, and the loaded image differs from the original one. The right-most column is "missing" (it is black).

       

      E.g:

       QImage: XPM pixels missing on image line 39 (possibly a C++ trigraph).

       

       

      I attached an example project to reproduce the issue. It worked with qt 5.5 and 5.13 too. I also checked that the XPM saved by the qt 5.5 and 5.15.1 version is the same.

       

      Attachments

        For Gerrit Dashboard: QTBUG-86691
        # Subject Branch Project Status CR V

        Activity

          People

            vgt Eirik Aavitsland
            tomicooler Tamás Dömők
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes