Qt 6.12 LTS is out! See what's new in the release
blog
QSqldatabase and QT creator
Mobile and Embedded
5
Posts
4
Posters
6.4k
Views
1
Watching
-
HI All,
I am working on QSqldatabase and i have following problem.
I have create connection and but when i compile my code i am facing compilation error that QSqldatabase not declared. I have added in pro file QT += sql but i think something is missing.Is there any dll that will add support for QSql ?
Thanks,
Neel -
@#include <QSqlDatabase>@
and as mlong said notice the capitalisation you are using is incorrect.
-
Also make sure that qmake has been re-run since you added QT += SQL so that the Makefiles (or equivalent) have been updated to include the necessary include and library paths etc.