chandan
23rd October 2010, 17:12
Hi Everyone,
I have written a UI which was working fine in debug mode. But when I have tried to execute the same code in release I am getting the following warning.
"QSqlQuery::value: not positioned on a valid record".
But except of this warning, everything else is working fine. Now my question is how to remove this warning please? Code stated below is giving the above warning,
int iResult = m_pSqlQuery[1].value(0).toInt(&bOk);
I have written a UI which was working fine in debug mode. But when I have tried to execute the same code in release I am getting the following warning.
"QSqlQuery::value: not positioned on a valid record".
But except of this warning, everything else is working fine. Now my question is how to remove this warning please? Code stated below is giving the above warning,
int iResult = m_pSqlQuery[1].value(0).toInt(&bOk);