This repository is a small example of how to set up sqlite database with Qt and perform some basic queries.
- Install SQLITE
- Download this Github repository
- Run in QT Creator and watch it connect to the database.
Visit the main article here to understand more.
IMPORTANT If you don't see your database file show up in your file directory, you need to go to Projects -> Build & Run -> Run -> Working Directory. This is where your database file will be generated.
Updated October 29, 2016
- Added a function to create tables, which will also automatically create a new database if it doesn't already exist.