PyQt: Is there a way to hide a column in QTreeWidgetItem?

174 Views Asked by At

Basically as title says. Is there a way to hide a column in QTreeWidgetItem?

I have multiple hierarchies that goes like this:

Top Label 1
  |
  |—-> Child Label
         |
         |—-> Table

Top Label 2
  |
  |—-> Child Label
         |
         |—-> Table

I have a few columns in my table and I want to hide a specific column in ALL hierarchies. However, QTreeWidgetItem doesn’t have a setColumnHidden. How do I go about hiding a column in the table?

0

There are 0 best solutions below