1 Attachment(s)
QTreeView Headers not displaying properley.
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:
Code:
Headers.
append(QString("Progress"));
//Headers << "Name" << "Progress" << "Rating" << "Type";
DataModel->setHorizontalHeaderLabels(Headers);
and here is what i get when i run the program:Attachment 9740
any ideas why?
Also for some reason i cannot resize the columns programatically aswell
Re: QTreeView Headers not displaying properley.
Ok i found the solution, the problem was that i was clearing the data model so i had to set the headers again