qabstracttablemodel

How to implement setData on PyQt5 QAbstractTableModel with QSqlRelationalTableModel

How to implement setData on PyQt5 QAbstractTableModel with QSqlRelationalTableModel Question: I am newbie with Pyqt and need help with setting setData on QAbstractTableModel with QSqlRelationalTableModel table model I have this simple code and I dont now how to implement setData function. I can’t set value to field. I’m getting TypeError: ‘QSqlRelationalTableModel’ object is not subscriptable …

Total answers: 2