why do you convert your result to an byte array? there you skip the informations. Just do
bool ret = query.exec("select name_searchword from searchword where id_company = 1125");
while(query.next())
{
QString st
= query.
value(0).
toString();
qDebug() << "Str is :" << st;
}
bool ret = query.exec("select name_searchword from searchword where id_company = 1125");
while(query.next())
{
QString st = query.value(0).toString();
qDebug() << "Str is :" << st;
}
To copy to clipboard, switch view to plain text mode
and all should work fine.
Bookmarks