How to change size of QListWidgetItem ?
Unsolved
General and Desktop
-
Te code example:
QlistWidget * lw = ...; QWidget * w = ...; QListWidgetItem * lwi = QListWidgetItem(w); lwi->setSizeHint(w->size()); lw->setItemWidget(lwi, w);
At some moment we change the size of w (w->resize(new_size);)
Then for display correctly w in QListWidget, need to change the sizeHint on QListWidgetItem.
Is it possible to do that without the inheritance of QListWidgetItem, or additional containers? -
Why can't you call setSizeHint() again after the size change?