Experimenting with resizeColumnsToContents
for QtQuick
and QtWidgets
tree views.
Calling TreeView.resizeColumnsToContents(0)
affects the layout of the column, but it doesn't seem to resize the colums to a width that is enough to dislay all the rows in of the column.
Simply calling the method QTreeView.resizeColumnsToContents(0)
achieves the expected results.