On 03.12.10 17:13:31, KONTRA, Gergely wrote:
> On Fri, Dec 3, 2010 at 15:56, Wolfgang Rohdewald <wolfg...@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.
> http://doc.trolltech.com/4.7/qsqltablemodel.html#rowCountdoesn't
> 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
query.

Andreas

-- 
You too can wear a nose mitten.
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to