I'm trying to code a simple c++ IDE based on Qt. Like any language IDE, a line number is very useful in the code editor.
I'm using QTreeView for the editor and I'd like to add this line number feature in. Looks like QTreeView::header() only returns the Horizontal header to me. How can I get the vertical header to set the line number in QAbstractItemModel::headerData()?