PDA

View Full Version : Long text inside a table cell



TheKing
15th December 2009, 20:35
Hello,

I'm new in QT programming and I have a question : I want to create a table and in some cells the text might be long (the cell width is fixed). In this case, the text must be cut and displayed in several lines in the same cell. For example if the text is "text very very very long", the displayed text must be something like :

in the first line of the cell "text very"
in the second line of the cell "very very"
in the third line of the cell "very long"

To resume the same behaviour like "setWordWrap" but in my case the separator is not \n .

I think it's must be possible but I don't know how