QSyntaxHighlighter setting color phisically to document
Hi!
I found out that the synthaxhighlighter is not changing the color of the document phisically
and i cannot access these colors from the doc. When i set the color via :
Code:
textEdit->mergeCurrentCharFormat(format);
and i have the highlighter applied the display color in the editor is not changed, but
in the doc on that location the color is stored, so when i use this color in print preview
it is visible. The problem is that i want to use the colors from the highlighter, but these colors are not stored into the document. Does anybody have a solution for my problem?
I am looking forward for your help.
Thank you.
Re: QSyntaxHighlighter setting color phisically to document
I have found out that this is a bug:
http://www.trolltech.com/developer/t...ntry&id=134940
If anyone knows how to go around this bug and get to the colors, i would very appreciate
your help.
Thanks.