This is one way to do it.
Don't forget resizing again when you remove an item.
.....................................................................................................
```c void addEntry( QString name, QListWidget* list ) { QListWidgetItem* item = new QListWidgetItem( name, list, 0 ); QFont font; font.setPointSize(10); font.setWeight(70); item->setFont( font ); item->setIcon( QIcon(":/icon.png") ); int iconSize = 22; // I know icon size int size = list->count()*iconSize + 2; list->setFixedHeight( size ); } ```
.....................................................................................................