1) Please, don't reimplement the drawing engine. I am not a native english speaker. My native language is Spanish, but since I live in Israel, my real language is Hebrew - which as you may know already it's a complex script (google for RTL or BIDI).
If you reimplement the drawing code of the QTextEdit, you will loose any BiDI support in that widget. You will probably mess up Chinese, Hindic, and some other languages which Lars has worked so hard to get in perfect shape.
The setTabStopWidth() seems to beright way. As you will be able to convert the tab to "spaces" and back. This means you do not mess with the text the use loaded.
2) Reguarding the SH, I will see if there is a way to set it in a callback or something, otherwise th UI gets frezzed for several seconds when the initial painting is done. I also found no eay to rehighlight the code (what if the user wants to use another highlight...?)
3) current line = current pararaph in QTextDocument terminology. I want to draw the current line with a different background.
When the cursor is on "}", that char should be drawed with another background color, and the same for the first "{".
I assume you support only C/C++/H files right now...?
Bookmarks