[Solved] How to show result of QSqlQuery
-
I get right output on console from QSqlQuery but how to show it on the dialog?
This works but how to show the result like in QTableView?
@ QSqlQuery query;
query.exec(QString("SELECT * FROM bookmark"));query.first(); while (query.next()){ QString tag = query.value(1).toString(); qDebug() << qPrintable(tag); }
@
-
Hi,
You can use a QSqlQueryModel
-
Yes. Thank you. Exactly.