I have a QListView with items containing a text. Each text has different length. So I need to draw an item with different height and use word wrap.

This is perfect example how this must work.

http://www.qtcentre.org/wiki/index.p...Expanding_list

But this replace other longest text on click. I wanted to get rid of that code which is resp for click and update. But it just does not work then.

So question how to do it right. How to calculate a width/height of the coil and the draw a text there word wrapping ?

Thanks