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()