I just made a program with QTreeWidget.But I want to restore it to normal when I click a button,I mean it should be same as when it started. I learned how to remove the selected section that appears with a blue horizontal line.by
mytreeview.clearSelection()
check the image
But if anyone expand the column width, check the 2nd image
, "Type" column width has been increased from 1st picture.Then the question is how can i set it to normal means to my default value shown in picture-1 and imagine someone change the position of "Date Modified" to the place of "Size" column by dragging(position exchanged). Then How can i reset it to normal by pressing a button? This is some fundamental doubts about Qtreewidget so i have no code to write here.
Any help will be appreciated
Thank u