Thumbnail contact in QML
I'm trying to make a simple phonebook with C++ and QML.
In the QML there is just a ListView with a function to add the contacts from C++. The delegate component has an Image element to show the contact thumbnail.
I know how to set an Image by its url, for example I can get the url of the picture from the QContactAvatar. What I want to know its how to get the url of the QContactThumbnail, I tried to check the API but I couldn't find it.
Does anyone know how to get the url of the QContactThumbnail, or another way to add the thumbnail directly to each of the delegates of the ListView?
Thank you a lot!
See "qml avatar":http://doc.qt.nokia.com/qtmobility-1.2/qml-avatar.html element.
Thanks for the answer. I saw it, the problem is that sometimes you have a thumbnail but not an avatar. And the avatar is the tiny version of the avatar, so it's already prepared for a list, less load for the view.