Hi there

I've got a problem with QListWidget. I'd like to have the widget to shrink to the smallest size vertically. It shoud show all contained items.

I tried to achieve this with the sizePolicy and spacers. But I didn't get what i
I want.

QListWidgetToFitSize.png

I the picture you see what I have on the first list and what I'd like to have on the second list.

Thanks for your help!

Luke