title: How to add lines numbers to QTextEdit?
body: <p>I am writing a Visual Basic IDE, and I need to add lines numbers to <strong>QTextEdit</strong> and highlight current line. I have found this <a href="https://doc.qt.io/archives/qtjambi-4.5.2_01/com/trolltech/qt/qtjambi-codeeditor.html" rel="noreferrer">tutorial</a>,  but it is written in Java and I write my project in C++.</p>