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 classes is a widget class?

  1. QGraphicsView
  2. QGraphicsScene
  3. QGraphicsItem

Q2. Which of the following actions does not change the graphics item's position on the screen?

  1. Scaling the view.
  2. Shearing this item's parent item.
  3. Translating this item.
  4. Rotating this item's child item.

Q3. Which function is not mandatory to implement in a new class derived from QGraphicsItem?

  1. boundingRect()
  2. shape()
  3. paint()

Q4. Which item class should be used to display a raster image in the Graphics View?

  1. QGraphicsRectItem
  2. QGraphicsWidget
  3. QGraphicsPixmapItem

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