you were right about the
Quote:
CONFIG += sql
I had #include <QtSqlDatabse> an now changed to QtSql but get the same:
Qt Code:
  1. mainwindow.h:5:17: error: QtSql: No such file or directory
To copy to clipboard, switch view to plain text mode 

What am i missing here?!