Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-112 Enablers for dynamic scene object changes
  3. QT3DS-1196

Have some getter to retrieve the property name for something

    XMLWordPrintable

Details

    Description

      Right now the name is only "visible" in the Q3DSPropertyChange returned by the setter.
      However, slides work with the original property names as string:

      slide1->addPropertyChanges(wonderfulCarModel, new Q3DSPropertyChangeList {
          Q3DSPropertyChange::fromVariant(QLatin1String("rotation"), QVector3D(0, 180, 0))
      });
      Q3DSAnimationTrack anim(Q3DSAnimationTrack::Linear, model1, QLatin1String("rotation.z"));
      

      Hence the need for something that can be used to retrieve the name (which is "rotation" for Q3DSNode::rotation() in the above example, but is not always that straightforward)

      For the editor this is a non-issue since it needs to work with the properties in the more dynamic manner (set values via applyPropertyChanges/Q3DSPropertyChangeList, not via the setters), and so the property names are expected to be known.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes