title: QML TableView not calling QAbstractTableModel headerData()-function
body: <p>I'm currently working with a QML / QtQuick TableView. The data is shown -> great. The only thing I am currently not getting to work, are the headers: As far as I understand the Qt Model concept, the TableView should automatically call the C++ <code>QAbstractTableModel::headerData(int section, Qt::Orientation orientation, int role)</code>-function. However, when I add a <code>qDebug() &lt;&lt; "Hello World!"</code> at the beginning of the function (or using the debugger ;)), this function never gets called and the TableView's header doesn't show any text.</p>
  
  <p>Has anyone got this working? Or is this not implemented (yet?) for some reason (Qt 5.3)? What would the alternatives be?</p>
  
  <h2>EDIT: Additions</h2>
  
  <h3><code>mymodel.cpp</code></h3>
  
  <pre><code>QVariant myModel::headerData(int section, Qt::Orientation orientation, int role) const
  {
      qDebug() &lt;&lt; "Hello World!";
  }
  
  [... I left out the implementation of the other functions
   here as they work as expected ...]
  </code></pre>
  
  <h3><code>mymodel.h</code></h3>
  
  <pre><code>#ifndef MYMODEL_H
  #define MYMODEL_H
  
  #include &lt;QAbstractTableModel&gt;
  
  #include "inputvectors.h"
  
  class MyModel : public QAbstractTableModel
  {
      Q_OBJECT
  
  public:
      MyModel (QObject *parent = 0);
      // InputVectors is just another class I use but it basically
      // contains two `QList`s
      MyModel (InputVectors *inputData, QObject *parent=0);
  
      int rowCount(const QModelIndex &amp;parent) const;
      int columnCount(const QModelIndex &amp;parent) const;
      QVariant data(const QModelIndex &amp;index, int role = Qt::DisplayRole) const;
      QVariant headerData(int section, Qt::Orientation orientation, int role) const;
  
  protected:
      QHash&lt;int, QByteArray&gt; roleNames() const;
  
  private:
      InputVectors *inputData;
  };
  
  #endif // MYMODEL_H
  </code></pre>
  
  <h3><code>main.qml</code></h3>
  
  <pre><code>[...]
  TableView {
      id: myTableView
      anchors.fill: parent
      frameVisible: false
      model: controller.getInputVectorsModel()
  
      TableViewColumn {
          role: "row_line_numbers"
          width: 40
          delegate: Item {
              Text { text: styleData.value; anchors.left:parent.left;anchors.leftMargin: 12}
          }
      }
  }
  [...]
  </code></pre>