Game Programming using Qt 5 Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Summary

In this chapter, you learned how the Graphics View architecture works. We went through the building blocks of the framework (items, scene, and view). Next, you learned how their coordinate systems are related and how to use them to get the picture you want. Later on, we described the most useful and frequently needed features of Graphics View. Next, we covered creating custom items and handling input events. In order to build a bridge to the world of widgets, you also learned how to incorporate items based on QWidget into Graphics View. Finally, we discussed ways to optimize the scene.

Now, you really know most of the functions of the Graphics View framework. With this knowledge, you can already do a lot of cool stuff. However, for a game, it is still too static. In the next chapter, we will go through the process of creating a complete game and learn to use the Animation framework.