mysqlqt
error: 'qsqlquerymodel' was not declared in this scope qsqlquerymodel *model = new qsqlquerymodel;
mainwindow.cpp
代码如下:
void mainwindow::on_btn_clicked()
{
......
qsqlquerymodel *model = new qsqlquerymodel;
......
}