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

Posts: 188
Registered: ‎04-07-2013
My Device: BlackBerry Z10
My Carrier: Telus

Get ListView Data from IndexPath

Hello everyone,


I have a ListView which ListItemComponent's ListViewItem displays ImageViews.


I populated the ListViewItems using an ArrayDataModel.append(QVariantMap)


These Maps hold a value of ByteArrays.


My question is, how do I retrieve the ByteArray from selectedIndexPath?


Thank you!

Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Get ListView Data from IndexPath

So each item has multiple images, is this your intention, or are you trying to do one image per item?


You'd be able to access it the normal way with ListItemData returning a QVariantMap.



If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.