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

QVariant serialization broken for QUuid values when using Qt 4.6 format

    XMLWordPrintable

Details

    • 8310d636be068bb814418e2e6044c6dbd7df253a (qt/qtbase/5.14)

    Description

      When using QDataStream with QDataStream::Qt_4_6 to write a QVariant containing a QUuid, the written data differs between Qt 5 and Qt 4. Please see the attached unit-test. The test succeeds with Qt 4.8.6 and fails with Qt 5 (and later). With the attached fix, Qt 5 succeeds, too.

       

      The reason is that in Qt 4 QUuid contained in QVariant is handled as a custom-type in contrast to Qt 5 but that special case is not handled.

       

      Fix attached.

      Attachments

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

        Activity

          People

            poikelin Joni Poikelin
            tilman.circlecvi Tilman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes