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

QPicture is hardwired to use a QDataStream version corresponding to Qt 4.5 if the current release is requested

XMLWordPrintable

    • 78f6d144d6c1d0ed6880bbf99310fe03e8502567

      The documentation for QPicture says the following:

      Note that the default formatVersion is -1 which signifies the
      current release, i.e. for Qt 4.0 a formatVersion of 7 is the same
      as the default formatVersion of -1.

      However, this uses a hardwired version number at the top of QPicture.cpp, "mfhdr_maj", which is currently set to 11. This is the version number of Qt 4.5. The latest version of QDataStream is in fact 12, in the 4.7 stream at least (see QDataStream.h).

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

            mitch_curtis Mitch Curtis
            jlarcombe James Larcombe
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes