hello every body,
i have a problem with QSqlQuery
i built a query easy and i went to the first record by using
Qt Code:
  1. query->next()
To copy to clipboard, switch view to plain text mode 
until now every thing works fine later in the program i used
Qt Code:
  1. query->seek(id)
To copy to clipboard, switch view to plain text mode 
the query went to the record i want because i investigate that by trying
Qt Code:
  1. query->at()
To copy to clipboard, switch view to plain text mode 
i found it on the roght record but when i try to get the text from the record no thing return
Qt Code:
  1. query->value(0).toString()
To copy to clipboard, switch view to plain text mode 

but, but
when i used
Qt Code:
  1. query->last()
To copy to clipboard, switch view to plain text mode 
before
Qt Code:
  1. query->seek(id)
To copy to clipboard, switch view to plain text mode 
every thing works fine
i want to know why?
and thank you