How to do it...

Let's set up our SQL Server before we dive into Qt:

  1. Install and set up a MySQL Server. There are many ways you can install it. One method is to download MySQL from the official website at http://dev.mysql.com/downloads/mysql/ and install it. After that, you also need to install MySQL Workbench from http://dev.mysql.com/downloads/workbench/ to administrate your databases.
  2. An alternative method is to install a third-party package that comes with MySQL and other useful applications, such as the Apache web server or phpMyAdmin, all in a unified installer. Examples of such packages are XAMPP, found at https://sourceforge.net/projects/xampp/, and AppServ, found at https://www.appservnetwork.com/en/download/.
  3. In this example, we ...

Get Qt5 C++ GUI Programming Cookbook - Second 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.