PDA

View Full Version : How to get QTableWidget columns label value



Imhotep
7th February 2014, 02:38
Is there a way to get QTableWidget's column label value? The inverse of setHorizontalHeaderLabels(QString) in Qt and the equivalent of GetColLabelValue (int col) wxWidgets: I'm looking for a long time in the Qt documentation but could not find the command I need :confused:

anda_skoa
7th February 2014, 07:55
Try horizontalHeaderItem(int col) and then getting the text from it.

Cheers,
_