I create a table view with filling data (Qsqlite). As far as I see, there is no option to choice columns when creating model.

After, model->select(); All column comes into tableview. But I need to hide id column to prevent editing.

I try to use;


no result.

Which policy I should use? select only som columns before filling tableview or hide a column from tableview? And how?