[SOLVED] Change horizontal header (title of colums) in QTableView
-
Hello forum
This is probabley so simple, though I can't manage to find it after 2 hours of struggling!
I have a QTableView wich is showing contents of a QSqlTableModel. Headers of columns are same as filed names in SQL database. I would like to change and translate them:
"Image":http://s3.picofile.com/file/7386482468/header.png
Thanks in advance
-
"setHeaderData()":http://qt-project.org/doc/qt-4.8/qsqlquerymodel.html#setHeaderData. See "also":http://qt-project.org/doc/qt-4.8/qsqlquerymodel.html#details.
-
[quote author="Lukas Geyer" date="1337528339"]"setHeaderData()":http://qt-project.org/doc/qt-4.8/qsqlquerymodel.html#setHeaderData. See "also":http://qt-project.org/doc/qt-4.8/qsqlquerymodel.html#details.[/quote]
I was looking for it in QTableView :-/
Thank you