Hi, I'm quite a newbie. I used to program a little bit long time ago with Borland C++ Builder 6
Qt is amazing but the Database stuffs is not realy user friendly ( compare to the old borland 6)
Now i'm having some trouble with the postgresql driver.
I've made a little app to open the db but i've got an error:

QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.

I found on the internet that i should build the postgresql driver.
I open C:\Qt\5.2.1\Src\qtbase\src\plugins\sqldrivers\sqld rivers.pro with qt creators but it says i miss some files.
Then i copied the missing files (libpq-fe.h, pg_config_ext.h, pg_config.h) in folder C:\Qt\5.2.1\Src\qtbase\src\plugins\sqldrivers\psql \
Now it says "cannot find -lpq"
What i'm missing?