On terça-feira, 18 de setembro de 2012 00.24.45, Thiago A. Corrêa wrote:
> Hi,
>
> I'd like to propose a templated QSqlQuery::value in the same way
> QVariant::value works. This syntax suggar allows one to write:
>
> QSqlQuery query;
> ...
> int myvalue = query.value(0);
>
>
Hi,
I'd like to propose a templated QSqlQuery::value in the same way
QVariant::value works. This syntax suggar allows one to write:
QSqlQuery query;
...
int myvalue = query.value(0);
Instead of the current:
int myvalue = query.value(0).toInt();
And also