12

Accessing Databases with SQL Driver and Qt

Structured Query Language (SQL) is a special programming language used to manage data held in a relational database management system. A SQL server is a database system designed to use one of the many types of SQL programming languages to manage its data.

In this chapter, we will cover the following recipes:

  • Setting up a database
  • Connecting to a database
  • Writing basic SQL queries
  • Creating a login screen with Qt
  • Displaying information from a database in model view
  • Advanced SQL queries

Technical requirements

The technical requirements for this chapter include Qt 6.6.1 MinGW 64-bit and Qt Creator 12.0.2. All the code used in this chapter can be downloaded from the following GitHub repository: https://github.com/PacktPublishing/QT6-C-GUI-Programming-Cookbook---Third-Edition-/tree/main/Chapter12 ...

Get Qt 6 C++ GUI Programming Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.