Hi All,
In Qt 4.5.3, I am using a standard QListWidget as part of a mainwindow. It is being populated by QListWidgetItems (addItem), each of which is then linked against a custom widget (addItemWidget). When an item is selected from the list (QListWidget::itemClicked signal), I show the custom widget. The custom widget is subsequently hidden when focus changes to another item (QListWidget::currentItemChanged signal).
The problem I am having lies in that the custom widget is significantly greater in height than the list widget's items (specifically, I've forced the list widget's items to a height of 30, and the custom widget has a height of 80). When the custom widget is shown, it covers up the list items below it. I would to know how to make the QListWidget update its layout to accommodate the changing item/widget heights.
Help?
Thanks.
Bookmarks