sajmplus
29th September 2016, 21:20
Hello,
i have QListView connected to custom model with ~1000 items. I load model data from WebAPI, one of item field is ImageURL.
I want to load images from ImageURL field into QListView icons. How can I achieve this?
I tried to return QPixmap pointer as Qt::DecorationRole and then start QNetworkAccessManager::get method for loading data into that QPixmap but with no success.
i have QListView connected to custom model with ~1000 items. I load model data from WebAPI, one of item field is ImageURL.
I want to load images from ImageURL field into QListView icons. How can I achieve this?
I tried to return QPixmap pointer as Qt::DecorationRole and then start QNetworkAccessManager::get method for loading data into that QPixmap but with no success.