Dear All
here is my code
The i value always retruning "0"
but the column value contains "1" also.
what mistake in the below code? why i return always zero?
Qt Code:
{ int rowno = activeRow(); RowItems = iDBConnect->Selecting(); if(selectedRow == previousRow) { iFilterUpdate = new FilterUpdate(); iFilterUpdate->ui.lineEdit->setText(string1); FilterNumb* item = RowItems[rowno]; iFilterUpdate->activeRow(item->id); TInt i; QSqlQuery query; .arg(item->id)); if (query.next()) { i = query.value(2).toBool(); } if(i) { iFilterUpdate->ui.CheckEnable->setCheckState(Qt::Checked); } else { iFilterUpdate->ui.CheckDisable->setCheckState(Qt::Checked); } this->close(); } else { previousRow = selectedRow; } }To copy to clipboard, switch view to plain text mode
Bookmarks