Originally Posted by
ChrisW67
Not literally no... But then you did not ask for python. You need to identify the vertical header object of the view in a Pythonic fashion and then you need to call its setVisible method. If I had to guess then
self.verticalHeader.setVisible(false)
self.verticalHeader.setVisible(false)
To copy to clipboard, switch view to plain text mode
got it this way
def headerData(self, section, orientation, role):
if role == QtCore.Qt.DisplayRole:
if orientation == QtCore.Qt.Vertical:
return None
def headerData(self, section, orientation, role):
if role == QtCore.Qt.DisplayRole:
if orientation == QtCore.Qt.Vertical:
return None
To copy to clipboard, switch view to plain text mode
Bookmarks