Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Qt 5

You're reading from   Getting Started with Qt 5 Introduction to programming Qt 5 for cross-platform application development

Arrow left icon
Product type Paperback
Published in Feb 2019
Publisher Packt
ISBN-13 9781789956030
Length 136 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Benjamin Baka Benjamin Baka
Author Profile Icon Benjamin Baka
Benjamin Baka
Arrow right icon
View More author details
Toc

QtSql

The QtSql module comes equipped with classes and drivers for accessing databases. To proceed beyond this point, you should have made the necessary configuration during the installation of Qt on your system to enable database access.

For those on the macOS using Homebrew, remember to issue the command as previously described in Chapter 1, Introducing Qt 5.

Linux users have to install the modules and enable the correct flags during compilation to make the QtSql module work, but, for the most part, the instructions in Chapter 1, Introducing Qt 5, should suffice.

The QtSql module is comprised of the following layers:

  • UI layer
  • SQL API layer
  • Driver layer

Each level makes use of classes, as illustrated in the preceding diagram.

Making the connection

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime