The QSqlQuery class, part of the Qt framework, provides a means of executing and manipulating SQL statements.
QSqlQuery encapsulates the functionality involved in creating, navigating and retrieving data from SQL queries which are executed on a QSqlDatabase.
Documentation can be found here.