Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devwiki:python_qt [2019/07/11 02:03]
ying [Tree Widget]
devwiki:python_qt [2019/07/11 02:06] (current)
ying [Tree Widget]
Line 1292: Line 1292:
 # auto fix width to content for request column index # auto fix width to content for request column index
 self.uiList['​element_tree'​].resizeColumnToContents(0) self.uiList['​element_tree'​].resizeColumnToContents(0)
 +# prevent above auto fit cause too small column look for empty column
 +self.uiList['​element_tree'​].header().setMinimumSectionSize(100) ​
  
 # auto column width, and no super long last column, 2 col in this example # auto column width, and no super long last column, 2 col in this example