PDA

View Full Version : Text width greater than the QRect



estanisgeyer
31st March 2011, 03:03
I'm using the function QPainter::drawText to draw a text. The problem is I have a QRect with defined width and need to put a text that can have a width greater than the QRect, so the text is not drawn, leaving blank.

How can I fix this? I do not care if the text cut out, as it is for a report.

Thanks,

MarekR22
31st March 2011, 09:27
Write post again, it is hard to say see difference what is your problem and what are you try to achieve, you've mixed everything in one sentence.
Code snipet would be better.