[SOLVED] Error LNK2019
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
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?
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.