I made text editor with menu bar using widgets given in qt GUI. But i want my text keywords should be highlighted with different colors.so how to link text eeditor with Qsyntaxhighlighter Class?
I made text editor with menu bar using widgets given in qt GUI. But i want my text keywords should be highlighted with different colors.so how to link text eeditor with Qsyntaxhighlighter Class?
Just like it is explained in the QSyntaxHighlighter documentation.
The documentation for QSyntaxHighlighter is very detailed about how to do this, with code examples, what more do you need?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
In QSyntaxHighlighter they have created their own editor through coding but i created my editor using widget only. So which code i extract from QSyntaxHighlighter to use in my own editor?
thanku it works...
Bookmarks