jigglyslime
31st October 2013, 05:33
Hey guys,
Ok so my problem here is that, i have a tree view in my program but it won't show the headers i set in the model.
Here is the model code whihc sets the headers:
QStringList Headers;
Headers.append(QString("Name"));
Headers.append(QString("Progress"));
Headers.append(QString("Rating"));
Headers.append(QString("Type"));
//Headers << "Name" << "Progress" << "Rating" << "Type";
DataModel->setHorizontalHeaderLabels(Headers);
and here is what i get when i run the program:9740
any ideas why?
Also for some reason i cannot resize the columns programatically aswell
Ok so my problem here is that, i have a tree view in my program but it won't show the headers i set in the model.
Here is the model code whihc sets the headers:
QStringList Headers;
Headers.append(QString("Name"));
Headers.append(QString("Progress"));
Headers.append(QString("Rating"));
Headers.append(QString("Type"));
//Headers << "Name" << "Progress" << "Rating" << "Type";
DataModel->setHorizontalHeaderLabels(Headers);
and here is what i get when i run the program:9740
any ideas why?
Also for some reason i cannot resize the columns programatically aswell