PDA

View Full Version : creating text following a curve in QT



mangeshj
15th January 2011, 07:17
Hi,
I need to create a text that follows a circular path. Please refer to the attached image.
Is there any way in Qt to create such texts.
Thanks,
Mangesh

tbscope
15th January 2011, 08:34
http://doc.qt.nokia.com/4.7/qpainterpath.html#addText

mangeshj
15th January 2011, 10:39
Hi tbscope,
Thank you for your reply. But I think I have not clearly conveyed my requirement. My requirement is to draw a text along a CURVE. For example, if i have a circle, the text should wrap around the circle. If I have a spline, then text should follow the spline.
Hope, this makes it clear.

tbscope
15th January 2011, 11:56
Oops:
http://developer.qt.nokia.com/faq/answer/how_do_i_make_text_follow_the_line_curve_and_angle _of_the_qpainterpath