O'Reilly logo

An Introduction to Design Patterns in C++ with Qt 4 by Paul Ezust, Alan Ezust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

18.1

Introduction to MySQL

424

18.2

Queries and Result Sets

427

18.3

Database Models

429

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

  1. Is open source

  2. Is available on all platforms

  3. Comes pre-installed on most Linux distributions

  4. Has excellent documentation

  5. Is very widely used

Introduction to MySQL

After you have installed MySQL on your system, you can create a database from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required