/ PyQt5

PyQt5 Tutorial - QTreeWidget

PyQt5 Tutorial - QTreeWidget
  1. how to hidden column in QTreeWidget

     from PyQt5.QtWidgets import QTreeWidget
    
     qtree = QTreeWidget()
     qtree.setColumnCount(3)
     qtree.setHeaderLabels(['col1', 'col2', 'col3'])
    
     headerView = self.ftree.header()
     # Set the width of the second column to zero by resizeSection
     headerView.resizeSection(1,0)