The error messages say the linker cannot find the external symbols
defined in the header <QtSql/QSqlQuery>
. You need to link against QtSql
library/module: http://qt-project.org/doc/qt-5.0/qtsql/qtsql-index.html
QT += core gui
QT += widgets
QT += network
QT += sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = guangdong
TEMPLATE = app
SOURCES += main.cpp\
login.cpp
HEADERS += login.h
FORMS += login.ui