- Game Programming using Qt 5 Beginner's Guide
- Pavel Strakhov Witold Wysota Lorenz Haas
- 84字
- 2021-08-27 18:31:09
Pop quiz
Q1. Which of the following classes is a widget class?
- QGraphicsView
- QGraphicsScene
- QGraphicsItem
Q2. Which of the following actions does not change the graphics item's position on the screen?
- Scaling the view.
- Shearing this item's parent item.
- Translating this item.
- Rotating this item's child item.
Q3. Which function is not mandatory to implement in a new class derived from QGraphicsItem?
- boundingRect()
- shape()
- paint()
Q4. Which item class should be used to display a raster image in the Graphics View?
- QGraphicsRectItem
- QGraphicsWidget
- QGraphicsPixmapItem