1
votes

I have a QListWidget that is populated by different items. Every item is decorated by icon.

Is it possible to change icon width for specific items?

1
Does item->setIcon(ic); with he desired icon work ?Synxis
no, it doesn't. I need to have ability to change icon size for specific items.Michael Yurushkin

1 Answers

0
votes

You may want to use QListView along with your custom model (inherited from QAbstractListModel), where in data() method of the model class you return corresponding icon (can be of arbitrary size) for Qt::Decoration role.