Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
GaryHomewood
Posts: 6
Registered: ‎07-05-2012
My Device: BB10
My Carrier: Orange

ListView StandardListItem with an external image url

How do I display an image in a ListView given a full external url? All the examples I've found are for images on the local filesystem.

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer
My Carrier: developer

Re: ListView StandardListItem with an external image url

Please use plain text.
New Contributor
GaryHomewood
Posts: 6
Registered: ‎07-05-2012
My Device: BB10
My Carrier: Orange

Re: ListView StandardListItem with an external image url

That is definitely what I'm looking for, but I don't understand the crucial step needed to wire up the image retrieval in C++ with my ImageView in QML. I am new to C++/QML. Another user ( level32 ) has posted on the thread with the same question. 

 

Any further help would be enormously useful. 

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer
My Carrier: developer
Please use plain text.
New Contributor
GaryHomewood
Posts: 6
Registered: ‎07-05-2012
My Device: BB10
My Carrier: Orange

Re: ListView StandardListItem with an external image url

Yes those are interesting threads, but they are talking about a single ImageView. The bit I can't work out is how you bind this image retrieval mechanism to an ImageView in a ListView, defined in QML.

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer
My Carrier: developer

Re: ListView StandardListItem with an external image url

Look at the sample stampcollector

 

Stuart

Please use plain text.
New Contributor
GaryHomewood
Posts: 6
Registered: ‎07-05-2012
My Device: BB10
My Carrier: Orange

Re: ListView StandardListItem with an external image url

The stampcollector sample is great, but the images it references from the JSON are all local to the application, in the assets/images folder. The JSON I am using has external urls for images ie. http://path/to/image.png and Cascades doesn't yet suppoprt this, as far as I know. So I need to code it myself somehow.

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer
My Carrier: developer

Re: ListView StandardListItem with an external image url

Have you made any progress on this?

Was there enough information in this and the other thread to put the pieces together?

 

Stuart

Please use plain text.
New Contributor
GaryHomewood
Posts: 6
Registered: ‎07-05-2012
My Device: BB10
My Carrier: Orange

Re: ListView StandardListItem with an external image url

No, I'm afraid there wasn't. I think the best solution would be to do the image retrieval in C++ and use a ListItemManager with the ListView, but I was unable to get it to work, due in part to my limited C++ skills. Or wait until its implemented in QML

Please use plain text.