hello every body,
i have a problem with QSqlQuery
i built a query easy and i went to the first record by using
query->next()
query->next()
To copy to clipboard, switch view to plain text mode
until now every thing works fine later in the program i used
query->seek(id)
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
query->at()
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
query->value(0).toString()
query->value(0).toString()
To copy to clipboard, switch view to plain text mode
but, but
when i used
query->last()
query->last()
To copy to clipboard, switch view to plain text mode
before
query->seek(id)
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
Bookmarks