Graphics View framework

The Graphics View framework is part of the widgets module in Qt so it is already supported by default, unless you're running Qt console application instead, which does not need the widgets module.

The Graphics View view in Qt works pretty much like a whiteboard, where you can draw anything on it using C/C++ code, such as drawing shapes, lines, text, and even images. This chapter may be a little hard to follow for beginners but it will definitely be a fun project to work with. Let's get started!

Get Hands-On GUI Programming with C++ and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.