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

Extend-property in State-element has no effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.7.0
    • None
    • Windows 7
      Qt Creator 2.0.81 (2.1.0-rc1)
      Based on Qt 4.7.0 (32 bit)
      Built on Jul 31 2010 at 02:07:47
      From revision 66750de6af
    • 969daadd245153e8bb6c9a89a51565b83832f484

    Description

      In following program red box should move diagonally after "b"-state is entered, but only y-property is changed.
      It seems that "b"-state does not inherit changes from "a" state.

      extend.qml
      import Qt 4.7
      
      
      Rectangle {
          width: 200
          height: 200
      
          Rectangle {
              id:box
              width:100
              height:100
              color:"red"
              states:[
                  State {
                      name: "a"
                      changes:PropertyChanges {
                          target: box
                          x:50
                      }
                  },
                  State {
                      name: "b"
                      extend:"a"
                      changes:PropertyChanges {
                          target: box
                          y:50
                      }
                  }
              ]
      
          }
      
          MouseArea {id:mouse;anchors.fill: parent; onClicked:box.state="b"}
      
      }
      

      Attachments

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

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            jere Jere Knaappila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes