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

Attached properties of items exposed from a component do not work in property view

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • QDS 4.x
    • QDS 4.6.0
    • Property View
    • None

    Description

      Consider a component with following content:

      import QtQuick
      
      Item {
          id: _item
          width: 200
          height: 200
      
          property alias text: _text
          property alias background: _rectangle
      
          Rectangle {
              id: _rectangle
              anchors.fill: parent
              color: "#ffffff"
              Text {
                  id: _text
                  x: 276
                  y: 100
                  text: qsTr("Hello")
                  anchors.verticalCenter: parent.verticalCenter
                  anchors.horizontalCenter: parent.horizontalCenter
      
                  font.family: Constants.font.family
              }
          }
      }
      

      If you use this component in a project, the attached properties of rectangle such as "background.border.width" can't be changed via property view. Either the control is disabled or just doesn't save the value (as is in case of background.border.color).

      Also, most of the "Text" element properties are missing from the property view, e.g. you can't change the font or its properties.

      Attachments

        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