How would you translate table name and field name from database?
for example i would like to have QSqlTableModel with QTabelView but column names in view translatable
is there a proper way with tr(), or some hack/trick that someone knows?
How would you translate table name and field name from database?
for example i would like to have QSqlTableModel with QTabelView but column names in view translatable
is there a proper way with tr(), or some hack/trick that someone knows?
You can set the headers that the QSqlTableModel serves up using QSqlTableModel::setHeaderData(). Views will generally display these unaltered. See the first example in the QSqlTableModel docs.
Bookmarks