Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-06 09:41:38
Original
946 people have browsed it

mysqlqt

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template