This tutorial will show you how to use SQLite and Qt SQL to have a relational database in your application. It will cover all the basic operations needed to work with a database like creating a table, inserting data, executing a query and checking the results. Full project and source code are provided.
SQLite and Qt SQL
This tutorial is based on two main components: Qt SQL and SQLite.
The Qt SQL module provides a driver layer, SQL API layer, and a user interface layer for SQL databases.
SQLite is an in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. Basically a database stored in a single file (or memory).
Qt offers support (drivers) for other popular databases like MySQL and