How to get QTableWidgets horizontal header?
-
Hi is there any way to get the QTableWidget's horizontal header directly?
-
you will use horizontalHeader() 's method which returns an QHeader 'object that you can handle its properties for doing what you want.
-
or you can get a particular header of a column using "QTableWidget::horizontalHeaderItem ( int column ) ":http://doc.qt.nokia.com/latest/qtablewidget.html#horizontalHeaderItem
-
Thank u maxoreli and rahul...:) i did it...
-
the above link is broken. This is the link to Qt 5.1 "QTableWidget::horizontalHeaderItem(int col)":https://qt-project.org/doc/qt-5.1/qtwidgets/qtablewidget.html#horizontalHeaderItem