Stephen Collyer wrote:
Is there a reason for the lack of such a method in QSqlQuery ?
I note that it exists in QSqlRecord and it would seem to be
an obvious candidate for QSqlQuery too.
My guess is that it was left out because it's just a convenience
function that isn't really required, that the index based lookup is
faster, and that no-one asked for it.
Subclassing QSqlQuery is a bit of overkill. You can simply use
QSqlRecord::value(QString&) instead: query.record().value(fieldName).
... but if you prefer to see it in the QSqlQuery API you can submit a
feature suggestion of course :-)
To unsubscribe - send a mail to [email protected] with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/