PyQt QTableView Set Horizontal & Vertical Header Labels : <p>using QTableWidget i can do </p>

<pre><code>table = QTableWidget()
table.setHorizontalHeaderLabels(QString("Name;Age;Sex;Add").split(";"))
table.horizontalHeaderItem().setTextAlignment(Qt.AlignHCenter)
</code></pre>

<p>how can i do same with QTableView ??</p>
