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

iMath 2281570025 at qq.com
Sat Dec 28 12:40:46 CET 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://lists.qt-project.org/pipermail/interest/attachments/20131228/97ebd415/attachment.html>


More information about the Interest mailing list