Home >Database >Mysql Tutorial >mysql-QSqlQueryModel不能在mainwindow中使用吗?

mysql-QSqlQueryModel不能在mainwindow中使用吗?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:41:38995browse

mysqlqt

error: 'QSqlQueryModel' was not declared in this scope QSqlQueryModel *model = new QSqlQueryModel;

mainwindow.cpp
代码如下:
void MainWindow::on_btn_clicked()
{
......
QSqlQueryModel *model = new QSqlQueryModel;
......
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn