I would take a look at http://doc.qt.io/qt-5/qtreeview.html#indentation-prop