mysql-QSqlQueryModel不能在mainwindow中使用吗?
程序员文章站
2022-05-17 11:55:10
...
mysqlqt
error: 'QSqlQueryModel' was not declared in this scope QSqlQueryModel *model = new QSqlQueryModel;
mainwindow.cpp
代码如下:
void MainWindow::on_btn_clicked()
{
......
QSqlQueryModel *model = new QSqlQueryModel;
......
}