I have searched the archives and I found the following code:
Qt Code:
{ public: { } ~ManifestModel() { } { if (index.column() == 2) return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable; else return Qt::ItemIsEnabled | Qt::ItemIsSelectable; } };To copy to clipboard, switch view to plain text mode
Then use ManifestModel in place of QSqlTableModel.
This does exactly what I need to do, but I don't understand C++ syntax. Could someone please convert this to Python for me. I would really appreciate it.
Bookmarks