[Qt-interest] removeRow on a derived QSqlTableModel does nothing.

MARTIN Pierre hickscorp at gmail.com
Mon Sep 26 22:23:55 CEST 2011


Hello list users,

i'm trying to understand something. i have derived from QSqlTableModel and am using Sqlite for something very simple.
i'm able to insert and update (Via QDataWidgetMappers). However, deletion doesnt work as expected: sometimes it does, and sometimes it just doesn't delete anything.
i have tried using manual submit and submitting myself after removeRow(), and i have also tried using automatic submission... The result is the same, i get a very vague error in the lastError object:
Failed to delete rows: "Parameter count mismatch"

Is there anyone who had the same issue? i know there were 2 bugs in Qt 4.4.something but i'm using 4.7.3 now...

Thanks,
Pierre.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110926/5a1ccd2b/attachment.html 


More information about the Qt-interest-old mailing list