1
下面是從文檔的例子State
和PropertyChanges
財產PropertyChanges:如何申請一個名爲「目標」
State {
name: "resized"; when: mouseArea.pressed
PropertyChanges { target: rect; color: "blue"; height: container.height }
}
以改變target
屬性標識的對象,和PropertyChanges
地圖1其他屬性以1爲目標對象的屬性。
但是,如果一個人想了一個名爲上foo
target
屬性更改爲bar
,天真的事情將是PropertyChanges { target: foo; target: bar }
,我敢肯定是行不通的。
有沒有辦法將PropertyChanges
的目標從其目標的目標中消除?