0
这是有问题的代码: “Connexion的BD确定”问题的SQLite与Qt的
QMessageBox::information(this, "Connexion Open", "Connexion BD Ok!");
QSqlQuery req;
req.exec("SELECT * FROM reservation");
while(req.next()) {
float id = req.value(0).toFloat();
text2->setText(" "+QString::number(id)+" ");
消息看起来完美。 如何获取DB知道DBMS(SGBD)是SQLite的结果?
谢谢
您已在'while'循环中检索查询的结果。你的问题是什么? – hamstergene