[PyQt] QSqlTableModel.rowCount bug? (and still need infor for beforeInsert)
Wolfgang Rohdewald
wolfgang at rohdewald.de
Fri Dec 3 17:30:17 GMT 2010
On Freitag 03 Dezember 2010, Andreas Pakulat wrote:
> 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.
You are right. The Qt SQLITE driver returns False for
hasFeature(QSqlDriver.QuerySize)
--
Wolfgang
More information about the PyQt
mailing list