AnsweredAssumed Answered

QML building a legend

Question asked by issrweb1 on Jan 27, 2016
Latest reply on Feb 2, 2016 by issrweb1

Hi, I am creating an app with QT Creator and am wondering how i would go about creating a legend. I could not find a legend component.

I have tried creating a custom component (listview with a model), and i scan the layerItems and retrieve the image url.

 

However, the url i get (sample below) does not seem to be a http endpoint. it looks like it is going in to a custom image provider, however, i am unable to see the image in my listview.

 

qml: image://arcgisruntimeimageprovider/cdacd5e0-39ac-4167-9adb-29a6d7a3388f/legendItem

 

I was wondering if someone could point me in the general direction of creating a legend component.

 

I am fairly new to qml/qt so i apologize for any noob questions i may have.

 

 

 

 

Thanks

 

 

 

Outcomes