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: 180
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

ImageView showing only the path of local images not the images.

Hi All,


I am creating a list with grid layout and in this i want to show my device local images. I am able to fetch all the imges but the problem is this when i am trying to show the images in the grid list it is showing only the path of the imges not the images.


Below is the code that i am using.

Please provide any suggestion.

Thanks in Advance.


import bb.cascades 1.0
import "../containers"

Page {

property variant photosData: app.getPhotosPath()
Container {
Container {

Container {
ImageView {
preferredWidth: 150
preferredHeight: 150
imageSource: "file:///accounts/1000/appdata/com.example.ProjectName.testDev_upAssistant534c4b4c/shared/photos/Tulips.jpg"
ListView {
id: listPhotos
dataModel: GroupDataModel {
id: groupPhotoDataModel
grouping: ItemGrouping.None
layout: GridListLayout {
columnCount: 3
listItemComponents: [
ListItemComponent {
type: "type"
ImageView {
imageSource: ListItemData.thumbnailPath
onTriggered: {
console.log("In qml the path is----"+listPhotos.dataModel.data(indexPath).thumbnailPath);
onCreationCompleted: {

Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: ImageView showing only the path of local images not the images.

Hi hemant_sain, please also share how your data looks like, i.e. photosData. Without this information is very hard to find out why you are not retrieving the images correctly.



Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker