how to adjust the size of QListWidget based on the data given?

Printable View