CHAPTER 13Databases

Databases are an integral part of even the simplest modern applications. While most readers might tend to relate databases to websites and large corporate solutions, you might be surprised to know that you can also use one to store data managed within a Qt application.

Qt offers a module for relational databases called QtSql. SQL, which stands for structured query language, is a language used for manipulating relational databases. Using SQL, you can communicate between different database engines and your application.

Qt supports many of the most popular databases, including MySQL, Oracle, PostgreSQL, Sybase, DB2, SQLite, Interbase, and ODBC. These drivers can be built as plugins or can be integrated in Qt.

In this chapter ...

Get Foundations of Qt Development 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.