[Qt-interest] QTableModel
Joshua Wambua
gmail at blueprint-group.co.ke
Wed Nov 3 14:37:30 CET 2010
_____
From: Joshua Wambua [mailto:gmail at blueprint-group.co.ke]
Sent: Wednesday, November 03, 2010 4:37 PM
To: 'J-P Nurmi'
Subject: RE: [Qt-interest] QTableModel
Ooops sorry I left out the 'SQL'. I have read everything I can but it just
work work right. The tables that don't have auto incremented columns are
allright.
_____
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of J-P Nurmi
Sent: Wednesday, November 03, 2010 4:30 PM
To: Qt-interest
Subject: Re: [Qt-interest] QTableModel
From: Joshua Wambua [mailto:gmail at blueprint-group.co.ke]
Sent: Wednesday, November 03, 2010 4:07 PM
To: 'J-P Nurmi'
Subject: RE: [Qt-interest] QTableModel
Ok thanks
But the problem is that if a column has autoincrement, it is not being
reflected and this has some issues when updating the data.
Oh, QTableModel actually refers to QSqlTableModel? Then you don't have to
implement insertRows() but just call it. Have you read
QSqlTableModel::insertRows() docs? I'm not sure anymore what's the
problem...
--
J-P Nurmi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101103/d570d17a/attachment.html
More information about the Qt-interest-old
mailing list