How to change the background of a text bloc in a text document in Qt

Posted by yan bellavance on Stack Overflow See other posts from Stack Overflow or by yan bellavance
Published on 2010-03-25T01:49:46Z Indexed on 2010/03/25 16:23 UTC
Read the original article Hit count: 392

Filed under:
|

is there a way to change the background color of a QTextBlock in a QTextDocument without using a subclass of QAbstractTextDocumentLayout. I have tried many ways and the effects are null. I am trying from the textCursor() method of a QPlainTextEditor and it seems practically everything is const.

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4