Wrapping text to next line in Listview delegates
mikhas last edited by
I have a Text item as my Listview delegate and want the contained text to wrap to the next line(s) if it is too long to fit in one line. However, the Listview seems to always clip its delegates. Any ideas?
DenisKormalev last edited by
You can do it in your delegate, there is nothing how ListView can help you. Just add wrapMode property to your Text item in delegate.
andre last edited by
And make sure you limit the width of your Text item to the width of the list it is in. How else would the item know where to do the actual wrapping?
qgil last edited by
And make sure you limit the width of your Text item to the width of the list it is in.
Ah, that was it. Sometimes looking too close to the complex stuff makes me forget about the basic stuff.