title: QTreeView with QFileSystemModel: How can I remove all columns except "Name"?
body: <p>while I'm working on something in Qt5 that closely resembles a file manager, I try to implement a <em>very basic</em> tree view, showing only the directory names without any other information. However, (it seems that) <code>QTreeView</code> doesn't let me decide which columns I want to show.</p>
  
  <p>Here's what I have:</p>
  
  <pre><code>// ...
  QString m_path = "C:/Users/mine";
  
  dirModel = new QFileSystemModel(this);
  dirModel-&gt;setFilter(QDir::NoDotAndDotDot | QDir::AllDirs);
  dirModel-&gt;setRootPath(m_path);
  
  ui-&gt;treeView-&gt;setModel(dirModel);
  // ...
  </code></pre>
  
  <p>Now my <code>QTreeView</code> shows more information with the name, like the size et al.; however, this is not the desired behavior.</p>
  
  <p>Setting <code>headerVisible</code> to <code>false</code> removes the "headline" of my <code>QTreeView</code> which is OK, but how can I remove the other columns completely? I tried:</p>
  
  <pre><code>ui-&gt;treeView-&gt;hideColumn(1);
  </code></pre>
  
  <p>just to test if that works, but it did not change a thing.</p>