I mentioned before that SQLite is a C library. To use this library in C++ applications, you can use many wrappers . But since I'm going in the direction of Qt, I want to use the QtSql module . QtSql module uses some drivers to communicate with databases like SQLite, MySQL, Oracle ... Or add //in the *.pro file QT += sql and include //in any class #include <QtSql> The process is very easy: Create a database object. Open it. Then execute some queries. For this entry, I created a project to explain the basic features of QtSql. I will try to explain some parts of it, and you can download it and try to understand the complete code. Viewing Table Contents: To view table contents, you need a QSqlTableModel object. QSqlTableModel is a high-level interface for reading and writing database records from a single table. A simple way to use it is like this: After creating a database object, I create a QSqlTableModel object and connect it to my database. Then I name the tabl...
Sharing my experience from trials and troubles.