Qt 6.11 is out! See what's new in the release
blog
Thumbnail contact in QML
QML and Qt Quick
3
Posts
2
Posters
2.7k
Views
1
Watching
-
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!
-
See "qml avatar":http://doc.qt.nokia.com/qtmobility-1.2/qml-avatar.html element.