I'd like to display some text (e.g. some source code) and 'annotate' it by displaying something like icons, line numbers or so to its left.
Is there support for something like that in QTextEdit? Are there other (Qt?) classes to achieve such a 'line based annotation'?

Thank you for any input.
Best regards
Christoph