PDA

View Full Version : rotated labels



jayw710
10th April 2006, 20:31
I searched around but didn't find any solutions. Is there a way to have a label vertical (rotated ccw by 90 degrees)?

Thanks!
Jay

vratojr
11th April 2006, 08:52
Hi,concerning a frameless label, I usually draw it with a QPainter.


paint.rotate(-90);
paint.drawText(QRectF(/*dimensions*/),Qt::AlignCenter,"text");

jayw710
11th April 2006, 17:47
Hi,concerning a frameless label, I usually draw it with a QPainter.


paint.rotate(-90);
paint.drawText(QRectF(/*dimensions*/),Qt::AlignCenter,"text");

Yeah, I didn't want to have to subclass and worry about the rotation, translation and then all the formatting changes etc.

thanks though,
Jay