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