PDA

View Full Version : QSqlQueryModel



StefanLatsch
7th December 2010, 09:09
QSqlQueryModel::record(int row) jump into subclassed function data(...) to retrieve data not in the own function.

The result could be a wrong information about the recordset.
The code should be changed to this->data(....

to get the correct information.
was that done in Purpose??

franz
7th December 2010, 11:09
Even when using
this->data(...); it will jump into the sub-classed data function. It is up to the implementer of the overriding function not to jeopardize the record set.