Book Image

Getting Started with Qt 5

By : Benjamin Baka
Book Image

Getting Started with Qt 5

By: Benjamin Baka

Overview of this book

Qt is a cross-platform application framework and widget toolkit that is used to create GUI applications that can run on different hardware and operating systems. The main aim of this book is to introduce Qt to the reader. Through the use of simple examples, we will walk you through building blocks without focusing too much on theory. Qt is a popular tool that can be used for building a variety of applications, such as web browsers, media players such as VLC, and Adobe Photoshop. Following Qt installation and setup, the book dives straight into helping you create your first application. You will be introduced to Widgets, Qt's interface building block, and the many varieties that are available for creating GUIs. Next, Qt's core concept of signals and slots are well illustrated with sufficient examples. The book further teaches you how to create custom widgets, signals and slots, and how to communicate useful information via dialog boxes. To cap everything off, you will be taken through writing applications that can connect to databases in order to persist data. By the end of the book, you should be well equipped to start creating your own Qt applications and confident enough to pick up more advanced Qt techniques and materials to hone your skills.
Table of Contents (8 chapters)

What this book covers

Chapter 1, Introducing Qt 5, walks you through the process of getting your machine ready to starting writing and running Qt programs. The chapter ends by introducing the hello world program in Qt, exploring the general structure and compilation process of a Qt program.

Chapter 2, Creating Widgets and Layouts, covers GUI components that are usually present in most applications and how they are created in Qt. The chapter then ends by detailing how to use layouts with widgets.

Chapter 3, Working with Signals and Slots, introduces one of the most important concepts to grasp in Qt, signals and slots. It demonstrates to the reader how to make an application trigger and respond to actions.

Chapter 4, Implementing Windows and Dialog, brings the reader closer to how a real-world Qt program should be written. It illustrates how to use and organize a program using classes, windows, and dialog boxes.

Chapter 5, Managing Events, Custom Signals, and Slots, explores the writing of custom signals and slots and introduces the topic of Events in Qt.

Chapter 6, Connecting Qt with Databases, deals with how to write applications that connect to a database and how to also present the data in visual form.