TestCoder
21st May 2020, 16:39
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.
13451
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.
13452
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
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.
13451
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.
13452
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