Reader small image

You're reading from  Hands-On Embedded Programming with Qt

Product typeBook
Published inJul 2019
Reading LevelIntermediate
PublisherPackt
ISBN-139781789952063
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
John Werner
John Werner
author image
John Werner

John Werner is an internationally published author, engineer, consultant, and conference speaker with more than 15 years' experience. He has earned patents for inventions ranging from Inkjet printers to automotive ignition systems. John was one of the early users of Qt on QNX and contributed to the early knowledge of how to make it work. He is a contributor to the Qt-related information on Stack Exchange. He is currently a senior software engineer, specializing in Qt development, for Caliber Imaging & Diagnostics.
Read more about John Werner

Right arrow

Communicating effectively – signals and slots

In Chapter 2, Writing Your First Qt Application, I provided a very brief introduction to slots and signals, and talked about how clicking on the Enter Name button is communicated to MainWindow. That should have been just enough to whet your appetite to know more.

Signals and slots are one of the fundamental building blocks of Qt. They are used to connect GUI elements to code. They are also used to talk between objects in an application. They form the basis of communication within a Qt application. Therefore, we should spend a little time learning about them.

We will start with a quick overview. Then we will look at how they can be used outside of the GUI. After that, we will see how we can use lambda functions with them. Finally, we will learn about direct and queued connections between signals and slots.

...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Embedded Programming with Qt
Published in: Jul 2019Publisher: PacktISBN-13: 9781789952063

Author (1)

author image
John Werner

John Werner is an internationally published author, engineer, consultant, and conference speaker with more than 15 years' experience. He has earned patents for inventions ranging from Inkjet printers to automotive ignition systems. John was one of the early users of Qt on QNX and contributed to the early knowledge of how to make it work. He is a contributor to the Qt-related information on Stack Exchange. He is currently a senior software engineer, specializing in Qt development, for Caliber Imaging & Diagnostics.
Read more about John Werner