migel
1st June 2011, 10:16
I am trying to put labels instead of default labels, but this does not work for me, still seeing the numbers instead.
QStringList headerLabels;
headerLabels << "Title" << "Genre" << "Artist" << "Rating";
this->setHorizontalHeaderLabels(headerLabels);
this->resizeColumnsToContents();
this->setColumnCount(4);
example from:
http://doc.qt.nokia.com/latest/itemviews-stardelegate.html
QStringList headerLabels;
headerLabels << "Title" << "Genre" << "Artist" << "Rating";
this->setHorizontalHeaderLabels(headerLabels);
this->resizeColumnsToContents();
this->setColumnCount(4);
example from:
http://doc.qt.nokia.com/latest/itemviews-stardelegate.html