Appendix A. Pop Quiz Answers

Chapter 3, Qt GUI Programming

Pop quiz – making signal-slot connections

Q1

A slot

Q2

connect(sender, SIGNAL(toggled(bool)), receiver, SLOT(clear())); and connect(sender, &QPushButton::clicked, receiver, &QLineEdit::clear);

Pop quiz – using widgets

Q1

sizeHint

Q2

QVariant

Q3

It represents a functionality that a user can invoke in the program.

Get Game Programming Using Qt 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.