I usually override the functions columnCount(), data(), setData() etc. in a subclass MySqlTableModel to get custom behaviour for my QSqlTableModels, for example to add an additional column to show some delete buttons or what ever... Probably, this is not the best solution, but for me it does the job. This is at least a solution to show an additional column with any content. For the sorting one may use the QSortFilterProxyModel, but there I'm not to experienced, but with the doc you will find a solution.

Have a nice weekend!
_______________________________________________
PySide mailing list
PySide@lists.pyside.org
http://lists.pyside.org/listinfo/pyside

Reply via email to