PDA

View Full Version : clear ExtraSelections in QPlainTextEdit



ArkKup
25th October 2013, 15:25
Hi,

is there any way to clear ExtraSelections in QPlainTextEdit ? I mean let's say I have line e.g.

foo, bar, baz

foo text is green
bar text is red
baz text is yellow

when I setExtraSelections on the line QTextFormat::FullWidthSelection colors are gone as expected and my question is if it's possible to clear the selection on this line to have this words back in color they where before setExtraSelections ?