[PyQt] OnManualSubmit + insertRows: EditRole and DisplayRole = QVariant.Invalid?
sbremal at hotmail.com
sbremal at hotmail.com
Thu Nov 25 16:57:09 GMT 2010
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.
Anyone experienced the same, found the cause / workaround?
Cheers,
B.
More information about the PyQt
mailing list