Hi,
I have some piece of code which load data form single mysql table to table view. This data should be editable, so I`m using QSqlTableModel. But I want to change default widget to edit data, for example I have enum type in database with values "Yes" and "No" and for this item i want to have combobox widget with these values. Another example is field with possible integer values 0 and 1, here I want to have checkbox in table view. How to reach this? Maybe subclassing QTableView, but I have no idea how to do this.
Bookmarks