|
|
От: | profsha | |
| Дата: | 18.07.12 12:38 | ||
| Оценка: | |||
А>QSqlQuery query = db.exec("select name from table");
А>while(query.next())
А>{
А> qDebug() << query.value(0).toByteArray();
А>}
А>QString str = query.value(0).toString();
QTextStream in(&str);
in.setCodec("KOI8-R");
qDebug()<<in.readAll();