Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello!
I am using a QPainter to draw text and images in a QPrintPreviewDialog. I have a problem with the text, because when it is very long, it leaves the paper. Someone knows how to set the line breaks automatically?
Thank you very much!
QTextOption options; options.setWrapMode(QTextOption::WordWrap); painter->drawText(rect,text,options);
@VRonin Thank you very much! Now, I have to set a bigger line spacing because they are very close.