Only QtCore and QtGui modules are enabled by default. To add suitable include paths and to link against QtSql module, add this line to your qmake .pro file:
Qt Code:
  1. QT += sql
To copy to clipboard, switch view to plain text mode