[PyQt] QSqlQuery::value: not positioned on a valid record

iMath 2281570025 at qq.com
Sat Dec 28 11:29:27 GMT 2013


After setting up a table model like this:
code is here [stackoverflow.com]

the content is displayed properly, but when I edit the data item then press enter ,this error occurred :


    QSqlQuery::value: not positioned on a valid record





when I close the application and restart it again ,I found the editing I did last time is not stored into the database ,anyone can fix my problem here .

Note:I did not use 


    model->removeColumn(0)





here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20131228/6424b9e3/attachment.html>


More information about the PyQt mailing list