katecpp / sql_with_qt

SQLite with Qt Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sql_with_qt

This repository is a small example of how to set up sqlite database with Qt and perform some basic queries.

Instructions

  1. Install SQLITE
  2. Download this Github repository
  3. 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.


Update History

Updated October 29, 2016

  • Added a function to create tables, which will also automatically create a new database if it doesn't already exist.

About

SQLite with Qt Application


Languages

Language:C++ 94.2%Language:QMake 5.8%