PDA

View Full Version : centre alignment of text in the pdf report



vinaysagar
24th July 2014, 14:46
hi,
iam trying to make a pdf report using Qpainter. I want a part of my text in the document to be centre aligned. Is there a way to do it? plz help me with this.

anda_skoa
24th July 2014, 17:56
There are several drawText() overloads in QPainter's API, some of them take a rectangle and flags. These flags can be used to specify alignment within the given rectangle.

Cheers,
_