I have a JsonListModel, that I use to fill a MapItemView with a list of addresses I got from a RestApi, and also I have two extra components, the first show additional info of the MapQuitItem that represent the task when the user click it, also, if there is data on the list, the closest address to the user is selected as default. The other component is just a Text that saids ‘No addresses found’. My problem is the next,
When I refresh the listModel, that is every minute, I clear the previous data on the model and from a second there the ‘no task’ component show up, this obviously is giving my a glitch that every minute that component is ‘flashing’, is there a way to avoid that?
AddressInfoCar{
id: infoCard
..
...
....
visible: dataModel.availableAddress.count > 0
}
Rectangle{
id: noAddressFound
...
...
...
visible: dataModel.availableAddress.count == 0
}