Try these questions to test your knowledge of this chapter:
- We use a message box to tell users that they are already viewing the first or last image while they are trying to see the previous one before the first image, or the next one after the last image. But there is another way to deal with this situation—disable prevAction when users are viewing the first image, and disable nextAction when users are viewing the last image. How is this implemented?
- Our menu items or tool buttons only contain text. How could we add an icon image to them?
- We use QGraphicsView.scale to zoom in or out of an image view, but how do you rotate an image view?
- What does moc do? What actions do the SIGNAL and SLOT macros perform?