Hello,
i have a simple custom widget multiple times in a QListWidget.
The custom widget contain some buttons and other suff and a QTableView,
whitch is hidden in the first place.
TwoItems.png
The button "Show/Hide TableView" will toggle the visibility of the QTableView.
But when the visibility is set to true, the widget doesn't resize.
In the next picture i clicked once the button "Show/Hide TableView" and the
QTableView will be visible (small white bar), but the surrounding QGroupBox
doens't change it's size and therefore also not the QListWidgetItem.
TwoItems_NoStretch.png
What i need:
- a widget based list view (i have used QListWidget)
- custom widgets which may change in size (e.g by setting the visibility of childs)
Can anyone help why my example doesn't work? (see Zip file)
Thx
Stefan
Bookmarks