Hi every one..

How can i change QTreeView vertical header?

the QTreeView is presenting QSqlQueryModel .

l tried to do it this way but it did not work :

Qt Code:
  1. QSqlQuery qury;
  2.  
  3. QSqlQueryModel tableModel;
  4.  
  5. qury.exec("select * from table;");
  6. tableModel.setQuery(qury);
  7.  
  8. ui->tableWidget->setModel(&tableModel);
  9.  
  10. for (int i=0; i<=14;i++)
  11. tableModel.setHeaderData(i, Qt::Vertical, stringList[i]);
To copy to clipboard, switch view to plain text mode 

this code is working fine when i use it for the Horizontal header :

Qt Code:
  1. for (int i=0; i<=14;i++)
  2. tableModel.setHeaderData(i, Qt::Horizontal , stringList[i]);
To copy to clipboard, switch view to plain text mode 

any ideas ?

thanks in advanced ..