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

QEasingCurve is not serialized/deserialized correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11
    • Fix Version/s: 5.14.0 Alpha
    • Component/s: Core: I/O
    • Labels:
      None
    • Commits:
      946d868619fe19c494fd2b7bb6694b29e17203d1 (qt/qtbase/dev)

      Description

      QDataStream does not stream all components of a QEasingCurve.

      This simple example shows the issue:

      #include <QByteArray>
      #include <QDataStream>
      #include <QDebug>
      #include <QEasingCurve>
      #include <QPointF>
      
      int main()
      {
      QEasingCurve orig;
      orig.addCubicBezierSegment(QPointF(0.43, 0.0025), QPointF(0.38, 0.51), QPointF(0.57, 0.99));
      
      QEasingCurve copy;
      
      QByteArray data;
      QDataStream dsw(&data,QIODevice::WriteOnly);
      QDataStream dsr(&data,QIODevice::ReadOnly);
      
      dsw << orig;
      dsr >> copy;
      
      qDebug() << orig.toCubicSpline().size() << " != " << copy.toCubicSpline().size();
      
      return 0;
      }
      
      

        Attachments

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

          Activity

            People

            Assignee:
            sgaist Samuel Gaist
            Reporter:
            knud Knud Dollereder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes