In this chapter, we learned that QSqlDatabase represents a connection to any supported database. You can use this to log in to remote MySQL databases or a SQLite database on a network share. To perform data retrieval, use QSqlQuery. You use the same class to set data and tables and other database commands. You can use QSqlDatabaseModel if you are using a model-view application.
In the next chapter, we will explore in-app purchasing using the Qt Purchasing module.