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:
Qt Code:
  1. QStringList Headers;
  2. Headers.append(QString("Name"));
  3. Headers.append(QString("Progress"));
  4. Headers.append(QString("Rating"));
  5. Headers.append(QString("Type"));
  6. //Headers << "Name" << "Progress" << "Rating" << "Type";
  7.  
  8. DataModel->setHorizontalHeaderLabels(Headers);
To copy to clipboard, switch view to plain text mode 

and here is what i get when i run the program:Capture.PNG

any ideas why?

Also for some reason i cannot resize the columns programatically aswell