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

Property alias does not work with grouped properties

XMLWordPrintable

      $ qmlviewer MyItem1.qml
      file:///home/kde-devel/kde/src/KDE/kdepim/runtime/qml/kde/tests/MyItem1.qml:8:29: Invalid alias reference. An alias reference must be specified as <id> or <id>.<property>
      property alias textFont : myText.font.family
      ^

      import Qt 4.7
      
      Item {
        width : 200
        height : 200
        property alias textFont : myText.font.family
      
        Text {
          height : 40
          anchors.centerIn : parent
          id :myText
          text : "Foo"
        }
      }
      

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

            aakenned Aaron Kennedy
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes