Chapter 18. Qt SQL Classes
This chapter gives a general introduction to the capabilities of Qt’s SQL classes, using MySQL as an example back end.
Qt 4 provides a platform-neutral database interface similar to JDBC but without the annoying mandatory exception-handling code. You can use Qt to connect to a variety of different SQL databases, including Oracle, PostgreSQL, and SybaseSQL. In the examples that follow, we use MySQL[1] because it
Is open source
Is available on all platforms
Comes pre-installed on most Linux distributions
Has excellent documentation
Is very widely used
Introduction to MySQL
After you have installed MySQL on your system, you can create a database from ...
Get An Introduction to Design Patterns in C++ with Qt 4 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.