I would like to know how to remove the vertical and horzontial headers from a QStandardItemModel object. I have couple situations where either I need the vertical header but don't want the horizontal header and vice versa.
Thanks
I would like to know how to remove the vertical and horzontial headers from a QStandardItemModel object. I have couple situations where either I need the vertical header but don't want the horizontal header and vice versa.
Thanks
Sounds like you use table view so use:
to access the headers and just hide() them.
J-P Nurmi
Silly question, but how to dyou achieve this with a TableWidget?
Yes, QTableWidget is a QTableView. In other words, QTableWidget inherits QTableView, which is by the way mentioned right in the beginning of QTableWidget docs.
J-P Nurmi
abrou (1st February 2008)
Bookmarks