Prepend a main row counter as first column/text to QTreeView in PyQt5? The example code below generates a GUI like this: