[SOLVED]switch columns in a QSqlRelationalTableModel
is it possible to change the order of columns into a QSqlRelationalTableModel without having to manually specify a query? For instance, if I've got a table with (surname, name) and I want to display it as (name, surname), is there an easy and handy way?
You can do it on the view level.
void QHeaderView::moveSection ( int from, int to )
[quote author="Eddy" date="1318272331"]void QHeaderView::moveSection ( int from, int to )[/quote]
Thanks, this is perfect!
Could you edit your title and add [solved] in front of it? Thanks.