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

Bug in valuetype value write-back semantics

    XMLWordPrintable

Details

    • cc688cc0cc4f5d4fc8f01411798872205df1d59c

    Description

      If a variant property is used to store a value type value, write-back semantics for subproperty changes are not implemented.

      import QtQuick 2.0
      
      Item {
          property variant v1: Qt.vector3d(1,2,3)
          property variant v2: Qt.vector3d(4,5,6)
          Component.onCompleted: {
              v1.x = 8
              v2.x = 9
              console.log(v1 + ", " + v2)
              // expect: QVector3D(8, 2, 3), QVector3D(9, 5, 6)
              // result: QVector3D(1, 2, 3), QVector3D(4, 5, 6)
          }
      }
      

      Attachments

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

        Activity

          People

            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes