PDA

View Full Version : columns in mysql



kernel_panic
6th February 2007, 08:50
hi
is there a function which gets all header-columns?
or does anybody know how the QSqlTableModel gets the header-data?
thanks

jacek
6th February 2007, 11:39
is there a function which gets all header-columns?
QSqlQueryModel::headerData()


does anybody know how the QSqlTableModel gets the header-data?
It asks the database, but the queries depend on the database you use (unless it supports the standard information_schema schema).

QSqlQueryModel::record() or QSqlDatabase::record() and QSqlRecord::fieldName() might be helpful.