Thanks tbscope, now it can compile, but, now I've got another error:

QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
How can I install QPSQL driver?