Try to add this line to your .pro file
Qt Code:
  1. QT += sql
To copy to clipboard, switch view to plain text mode