Qt 6.11 is out! See what's new in the release
blog
[SOLVED] Error LNK2019
Installation and Deployment
4
Posts
2
Posters
1.2k
Views
1
Watching
-
Hi guys!
I am beginner with QT/C++.
And need to connect to a database (SQL Server) and created a simple program to test the connection.
But returned me some errors
Erro:
!http://i.imgur.com/IQ2GL2O.png(http://i.imgur.com/IQ2GL2O.png)! -
Hi and welcome to devnet,
Did you re-run qmake after adding
@QT += sql@
to your pro file ?
-
That's worked, thanks SGaist.
But why do I need to run qmake?
Whenever I create a new class necessary to run qmake?
Thx again.
-
Because you added a new module to use with your application
Not when adding new classes. However you will have to if you add/remove the Q_OBJECT macro in your QObject derived classes.