pwqiang
19th December 2006, 07:46
Hi, i tried to use drawText to draw the string inside a rectangle. but i am facing problem when the string is too long to be fitted into single line. i used QT::breakAnywhere and it works by making the strings to multiple line in that rectangle. My problem is, i wan to make the string to be center of that rectangle no matter it is single line or multiple line. I tried qt::breakAnywhere || qt::center for the flags, but it did not work out.
please help... thanks in advance
please help... thanks in advance