title: QAbstractTableModel::header data and QML TableView
body: <p>I have subclasses the <code>QAbstractTableModel</code> and provided the <code>headerData</code> override:</p>
  
  <pre><code>/**
   * @brief   Obtains the header (columns) names.
   * @param   section: column number.
   * @param   orientation: Accepts only horizontal.
   * @param   role: Accepts only display.
   * @return  The column header text in case all params are valid.
   *          Otherwise empty QVariant.
   */
  QVariant CVarTableModel::headerData(int section,
                                      Qt::Orientation orientation,
                                      int role) const
  {
      if (role != Qt::DisplayRole)
          return QVariant();
  
      if (orientation != Qt::Horizontal)
          return QVariant();
  
      if (section &gt;= static_cast&lt;int&gt;(Columns::ZCOUNT))
          return QVariant();
  
      return QVariant::fromValue(static_cast&lt;Columns&gt;(section));
  }
  </code></pre>
  
  <p>I am trying to figure out how to make my QML <code>TableView</code> component utilize this function. Is there a way to do this automatically?</p>