PDA

View Full Version : how to make QIcon size to take all the QStyledItemDelegate background with text



umen
20th April 2011, 14:42
how to make QIcon size to take all the QStyledItemDelegate background with text in the bottom?
I’m using QListView , QStandardItemModel as the modle and delegated QStyledItemDelegate items as the QListList Items My question is in the implementation of the delegated item how can I make the QIcon image be as big as the size of the item But still keep its proportions and how to add text in the bottom of the image ?