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

Changing XmlListModel query value in a State

    XMLWordPrintable

Details

    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

      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)
            martjone Martin Jones (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes