Hello,

I was just wondering how to change the order of columns as they appear in QTreeView when using QDirModel. Here is a snippet of code:

Qt Code:
  1. // Declare the new objects.
  2. Directory_Model = new QDirModel;
  3. File_Path = new QString;
  4.  
  5. // Set the file system structure parameters.
  6. Directory_Model->setFilter(QDir::AllDirs);
  7. Directory_Model->setSorting(QDir::Time);
  8.  
  9. // Set the tree model (visual) parameters.
  10. this->QTreeView::setModel(Directory_Model);
  11. this->setColumnHidden(1,1);
  12. this->setColumnHidden(2,1);
  13. //this->setColumnHidden(3,1); //This crashes the widget. Why does this happen?
To copy to clipboard, switch view to plain text mode 

As it stands, I can see the directory tree, and then the modification time - in that order from left to right. I want this order reversed... how can this be done?

JS.