Details
Description
So lets say I have the following code:
import QtQuick 1.0 import QtMobility.contacts 1.1 Rectangle { gradient: Gradient { GradientStop { position: 0 color: "black" } GradientStop { position: 1 color: "grey" } } ContactModel { id: conModel manager: "memory" Component.onCompleted:{ conModel.importContacts("/home/tshah/all.vcf"); } } Component { id: contactDel Column { id: theCol Image { id: img source: model.contact.thumbnail anchors.horizontalCenter: theCol.horizontalCenter Component.onCompleted: { console.debug(model.contact.thumbnail); } } Text { id: theText text: model.contact.displayLabel color: "white" anchors.horizontalCenter: theCol.horizontalCenter } } } GridView { id: mainView anchors.fill: parent model: conModel delegate:contactDel cellWidth: 200 cellHeight: 120 } }
This code will import /home/tshah/all.vcf and show all the contacts with their name and thumbnail. Names show up fine; however, the thumnail only shows up as the generic placeholder, it never shows the contact's actual image (see attached snapshot). I confirmed that if I used regular C++, QVersitReader can pick up the proper thumbnail.