Did you initialize the database driver properly using QSqlDatabase::addDatabase()? Can we see the exact call?