https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-legendinfolistmodel.html
Looking at the LegendInfoListModel, it exposes a number of roles, one of which is the "symbolUrl", which I can successfully access when using the legendinfolistmodel.
However, if I fetch a legendinfo from that model, it doesn't have that symbolUrl role. Is there any way I can access that role outside of the model?
I tried calling forEach on the model, or using the get() method which both return a legendinfo object, but of course that doesn't have the role.
I want a listview filtered to just show certain legendinfos on the fly (based on a search term). My current work around is to set the listview model to the legendinfolistmodel, but then set the visible and height properties of the delegate to hide anything that doesn't match my search term. But the first thing I tried to do was iterate through them and push the matching ones into a new ListModel.
Any ideas on a way to access the symbolUrl and copy it out from the LegendInfoListModel?