Hi,
I'm a complete Qt newbie. I'm creating a GUI that requires a QListWidget with list widget items that have different sizes aside from it's customized look. I have subclassed QAbstractItemDelegate and customized the drawing of each list item. But I can't find a way to make the last item smaller than the rest of the items, in terms of height.
Is this because the reimplimented sizeHint function from the base class QAbstractItemDelegate can only be set once? That is why all list items that is bound to this delegate will ahve the same size hint? I'm looking for ways to change the sizeHint inside QAbstractItemDelegate paint function for the smaller list item. But I don't know if this is the right way.
Can somebody share your ideas about how to make different sizes for a list item that are bound to the same delegate?![]()
Bookmarks