Sorcery/weird thing happening including QSqlDatabase [SOLVED]
General and Desktop
3
Posts
2
Posters
1.0k
Views
2
Watching
-
I'm trying to include
QSqlDatabase
and I got this error:Cannot open include file: 'QSqlDatabase': No such file or directory
and I havesql
in my .pro file. - How to solve this? -
I'm trying to include
QSqlDatabase
and I got this error:Cannot open include file: 'QSqlDatabase': No such file or directory
and I havesql
in my .pro file. - How to solve this?I cleaned the project and now it's working. - That is really creepy.
-
Hi,
No black magic here, I'd say you added the sql module to your pro file but didn't run qmake before building.