[PyQt] QSqlTableModel.rowCount bug? (and still need infor for beforeInsert)
apaku at gmx.de
Fri Dec 3 16:45:19 GMT 2010
On 03.12.10 17:13:31, KONTRA, Gergely wrote:
> On Fri, Dec 3, 2010 at 15:56, Wolfgang Rohdewald <wolfgang at rohdewald.de>wrote:
> > On Freitag 03 Dezember 2010, KONTRA, Gergely wrote:
> > > Hi all!
> > >
> > > I suspect QSqlTableModel.rowCount cannot return numbers above
> > > 256.
> > rowCount is not the number of rows in the table but in the model,
> > AFAIK. Use fetchMore() to load more.
> Thats not logical.
> mention what is exactly rowCount, and one should expect the number
> of rows based on the name...
It also doesn't mention that its based on QSqlQueryModel::rowCount(). That
one however does explain what it returns in its API docs. So it seems like
your DB is at fault, as its not able to return the complete size of the
You too can wear a nose mitten.
More information about the PyQt