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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
item->setIcon(ic);
with he desired icon work ? – Synxis