Connecting to a database

In this recipe, we will learn how to connect our Qt 5 application to the SQL Server.