PDA

View Full Version : linebreaks QGraphicsTextItem



nicolas1
28th November 2008, 06:28
Hello,

QGraphicsTextItem::setWidth(width)

Is there any way to get linebreaks of text (better text with linebreaks) in QGraphicsTextItem (for reproducing text in other tool)?

caduel
28th November 2008, 07:11
automatic linebreaks (aka wrapping at some width), or manual linebreaks for "\n" in the text?

nicolas1
28th November 2008, 10:27
when width was set (QGraphicsTextItem::setWidth(width)), Qt automatically wrapping text into width and makes multiline text.
How is it possible to get where Qt visible broke line?

How to limit number of lines in QGraphicsTextItem?