I need a code editor widget for an application. QTextEdit has way too many features I don't need. And the code editor needs a great deal of features QTextEdit lacks. So I don't think it's a good idea to subclass QTextEdit.

I suppose I have two options:

* Is there already another code editor widget I could freely use and subclass for a commercial application?
* Should I start from scratch?

In the second case, I'm not quite sure where to begin. Until now, I have only subclassed working QT widgets. Is there a tutorial for this? Creating a widget from scratch (or perhaps only with QWidget as base-class)? Any help would be appreciated.

Thanks!