Changing the color of a QTextBlock that is within a QTextDocument
Posted
by yan bellavance
on Stack Overflow
See other posts from Stack Overflow
or by yan bellavance
Published on 2010-03-24T23:37:52Z
Indexed on
2010/03/24
23:43 UTC
Read the original article
Hit count: 355
Is there any other way to change the QTextLayout of a QTextBlock that is within a QTextDocument without having to subclass QAbstractTextDocumentLayout and call its documentChanged? I know that on a call to QTextBlock::layout() const ; the returned QTextLayout object can only be modified from the documentChanged implementation of a QAbstractTextDocumentLayout subclass but I was wodering if there was any other way before I implemented it.
© Stack Overflow or respective owner