Thumbnail contact in QML

  • Hi everyone,

    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!

  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.