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
function reloadAndWait()
{
if XmlListModel.status=XmlListModel.Ready and XmlListModel2.status=XmlListModel.Ready {..} //if not -> wait to status=ready
return true
else
return false //and drop some error string
}
function reloadAndWait()
{
if XmlListModel.status=XmlListModel.Ready and XmlListModel2.status=XmlListModel.Ready {..} //if not -> wait to status=ready
return true
else
return false //and drop some error string
}
To copy to clipboard, switch view to plain text mode
Bookmarks