[Qt-interest] Bounding box of the printout of a QTextDocument
Mathias Waack
Mathias.Waack at rantzau.de
Tue Apr 5 08:46:41 CEST 2011
Hi,
I'm generating a printout for a form mask containing some QLineEdit,
QComboBox, QTextEdit and other elements. The formatted content of the
QTextEdit is printed by QTextDocument::drawContents(). To print other elements
right and below this text I need to know the bounding box of the printout. Is
there way to get this information?
Currently I'm using the bounding box from the QTextEdit::toPlainText() string,
which is a poor workaround.
Or is there another more elegant way to print formatted text?
Thanks
Mathias
More information about the Qt-interest-old
mailing list