View Full Version : Removing Vertical Header from QStandardItemModel
db
31st January 2008, 18:13
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
jpn
31st January 2008, 19:10
Sounds like you use table view so use:
QTableView::horizontalHeader()
QTableView::verticalHeader()
to access the headers and just hide() them.
abrou
1st February 2008, 17:55
Silly question, but how to dyou achieve this with a TableWidget?
jpn
1st February 2008, 18:18
Yes, QTableWidget is a QTableView. In other words, QTableWidget inherits QTableView, which is by the way mentioned right in the beginning of QTableWidget docs.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.