Hi
I have a problem with synchronization several XmlListModel. Sometimes I need to reload one of them. When I reload one of them, I want to reload all of them. After reload is yet to proceed to the next instruction. And here I have a problem. How to check all XmlListModel status, and then pursue further instructions? Is the only solution is to check status each XmlListModel every x seconds ? I would like better solution in QML

Qt Code:
  1. function reloadAndWait()
  2. {
  3. if XmlListModel.status=XmlListModel.Ready and XmlListModel2.status=XmlListModel.Ready {..} //if not -> wait to status=ready
  4. return true
  5. else
  6. return false //and drop some error string
  7. }
To copy to clipboard, switch view to plain text mode