I am trying to connect to a MySQL database but QT doesn't load the MySQL Driver.
Both QSqlDatabase::drivers().contains("QMYSQL") and QSqlDatabase::isDriverAvailable("QMYSQL") return true but

QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL") fails with error message

QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7

The API documentation for addDatabase() implies that the addDatabase("DRIVER") call will open a connection and therefore should load the necessary driver.
Certainly QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE") succesfully opens a connection to SQLITE without any supplementary calls to "Load" a driver.

Some someone please explain how to get a connection to MySQL? or Load the MySQL driver?

Note: MySQL Server version: 5.5.37-0ubuntu0.14.04.1 is installed and running. Database can be accessed from Terminal so problem is not on MySQL side.

Regards
johnL