Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-5094

Support declaring value of a Component type property inline

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • QDS 2.2.0
    • None
    • 1

    Description

      QtQuick3D has many items with delegate properties that take Component type. A common way to declare these delegates is having the component declared inline like this:

                      ParticleModelShape3D {
                          id: modelShape
                          delegate: Model {
                              id: sphere
                              source: "#Sphere"
                              DefaultMaterial {
                                  id: sphereMaterial
                                  diffuseColor: "#4aee45"
                              }
                              materials: sphereMaterial
                          }
                      }
      

      While this works fine otherwise, the sphere model and material do not show up in navigator, so you have to select them in Text Editor if you want to adjust their properties.

      It should be possible to access these inlined components from the navigator.

      It should also be possible to create these inlined components without having to resort to Text Editor. E.g. When dragging a suitable component from library to the node having the delegate property, it could ask if you want to add it to delegate property.

      UX should specify exactly how these things should work.

      Attachments

        Issue Links

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

          Activity

            People

              thohartm Thomas Hartmann
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes