Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.6.0
-
None
Description
From pplp in the Declarative UI forum:
Hi,
I am trying to change the query of a XmlListModel when I switch to a specific state. However it seems that the StateChangeScript is only called during initialization (the debug print I put in there is not called when I switch state)
State {
name: "stateFoo";
when: mouseRegion.pressed == true;
PropertyChanges {
target: myXmlModel;
query: "/foo/bar";
}
StateChangeScript {
script: {
myXmlModel.reload();
print('Reload stateFoo);
}
}
}
Am I missing anything ? Does dynamicaly changing the query of a XmlListModel is supported ?
Thanks in advance