[PyQt] More QPlainTextEdit weirdness! (was: Missing scrollbar signal...)

Sundance sundance at ierne.eu.org
Wed Dec 16 18:05:25 GMT 2009


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.



More information about the PyQt mailing list