How to enable / disable horizontal / vertical header of QTableWidget?
2 answers
In case you want to do it using QTableWidget () for Python37 PyQt5. Here are the steps to hide both Vertical and Horizontal:
Initialize the widget, I mentioned it to make it easier to find steps:
self.tableWidget = QTableWidget()
Hide horizontal header
self.tableWidget.horizontalHeader().setVisible(False)
Hide vertical header
self.tableWidget.verticalHeader().setVisible(False)
0
source to share