[PyQt] OnManualSubmit + insertRows: EditRole and DisplayRole = QVariant.Invalid?
Hans-Peter Jansen
hpj at urpla.net
Thu Nov 25 20:08:36 GMT 2010
On Thursday 25 November 2010, 17:57:09 sbremal at hotmail.com wrote:
> Hello,
>
> With OnManualSubmit on QSqlTableModel using the insertRows function
> the cell roles for EditRole and DisplayRole is not set properly.
> Actually they seem to remain uninitialized and have the value
> QVariant.Invalid. This causes my table editors to behave stange (but
> only for new rows).
>
> With OnRowChange it is all fine.
The usual "please provide a minimum runnable example" applies here too..
You may base it on examples/connection.py for database setup.
Pete
More information about the PyQt
mailing list