Chapter 6. Drawing with Qt
While many applications can be built using only the built-in widgets, others require the ability to perform custom drawing, for example, when you need a custom widget or two, or maybe you're doing offscreen rendering to programmatically create images in graphics files, or else you're interested in building a radically different user interface. Qt provides support for all of these scenarios in C++, in addition to what you can do with Qt Quick.
In this chapter, I will show you what you need to know for general drawing in Qt. We begin by discussing QPainter and how it uses QPaintDevice instances to abstract drawing functionality. I will show you how this works in general terms and then give concrete examples for offscreen ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access