qlands
5th July 2011, 08:30
Hi,
I have a QSqlTableModel reading a table with 5 fields but I just want to display 1. Because I don't know the order of the fields (ie which one is 1 or 2 or 3, etc) I need to remove them by name. I can see that there is model->removeColumn(int) but How Can it remove them by name?
Thanks,
Carlos.
I have a QSqlTableModel reading a table with 5 fields but I just want to display 1. Because I don't know the order of the fields (ie which one is 1 or 2 or 3, etc) I need to remove them by name. I can see that there is model->removeColumn(int) but How Can it remove them by name?
Thanks,
Carlos.