Quote Originally Posted by Michiel
* Is there already another code editor widget I could freely use and subclass for a commercial application?
* Should I start from scratch?
The DevQt team, myself included is working on such a widget but, as we're developping an open source app I'm not sure about the possibility of allowing someone to use it in someting commercial. I guess we've got to discuss about that if you're interested in our work!


Quote Originally Posted by Michiel
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.
Starting from scrach would be an awfull idea! You'd waste time and probably not produce an efficient code. If you absolutely want to do something on your own I suggest you subclass QAbstractScrollArea and use the QTextEdit code as a start, just throwing away what you don't need and extending it to match your requirements...

The only problem would be that taking the QTextEdit source is possible only if you use the Open Source version...