O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Pop quiz

Q1. Which of the following is a requirement for animating a property?

  1. The name of the property must start with "m_".
  2. Getter and setter of the property must be slots.
  3. The property must be declared using the Q_PROPERTY macro.

Q2. Which class sends a signal when a gamepad button is pressed or released?

  1. QGamepad
  2. QWidget
  3. QGraphicsScene

Q3. What is the difference between the shape() and boundingRect() functions of QGraphicsItem?

  1. shape() returns the bounding rectangle as a QPainterPath instead of a QRectF
  2. shape() causes the item to be repainted.
  3. share() can return a more precise description of the item's boundaries than boundingRect()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required