hi all i have gone through the internet to try find how to connect to the database but i think there is a library that i need to add to to my simple desktop application, while trying to create a database instance with this line
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");

this (QSqlDatabase) comes out as undeclared identifier and that from my newbie knowledge i think is because their is lack of an essential library, i have checked how to do it in command prompt but the commands are not recognized, can somebody help me with step guide on how to do this?