waynew
10th February 2010, 00:28
Could someone please explain this to me?
QModelIndex QSqlQueryModel::indexInQuery ( const QModelIndex & item ) const [protected]
Returns the index of the value in the database result set for the given item in the model.
What is meant by & item ???
It's obviously not a database field value, as that is not compiling.
And what is the relationship between the record data in the model and the model index?
What if the user changes the record sort order. What then?
QModelIndex QSqlQueryModel::indexInQuery ( const QModelIndex & item ) const [protected]
Returns the index of the value in the database result set for the given item in the model.
What is meant by & item ???
It's obviously not a database field value, as that is not compiling.
And what is the relationship between the record data in the model and the model index?
What if the user changes the record sort order. What then?