PDA

View Full Version : WordWrapping to a Ellipse or other shape that isn't a rect



warry
11th August 2008, 10:34
Is there a way, using Qlabel or some other Q text thing, to get text to wrap inside an ellipse shape without having to write code that deals on the letter level? QLabel has wordwrap, but I can only define a rect area, instead of an area that doesn't have 90 degree vertical sides. Anyone know how to do it?

jpn
13th August 2008, 16:27
Perhaps with QTextLayout. Check the example in detailed description. One can set width of individual lines.