On Friday 11 December 2009 14:04:41 Henning Schröder wrote: > Have you tried plaintext_edit.document().documentLayout().draw(paint, > context) ?
Thanks! Actually, I have since switched to the use of QAbstractTextDocumentLayout.draw(), because unlike QTextDocument.drawContents() it can paint the current selection as well, but my code has since come to depend more on the specifics of QTextEdit anyway, so replacing it with QPlainTextEdit is no longer very interesting. But thanks for the pointer! Had I not come across that method on my own in the meanwhile, it would have been invaluable to me. Bye, -- S. _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
