Paint System¶
A system for painting on the screen or on print devices using the same API
A system for painting on the screen or on print devices using the same API
Qt’s paint system enables painting on screen and print devices using the same API, and is primarily based on the
QPainter
,QPaintDevice
, andQPaintEngine
classes.
QPainter
is used to perform drawing operations,QPaintDevice
is an abstraction of a two-dimensional space that can be painted on using aQPainter
, andQPaintEngine
provides the interface that the painter uses to draw onto different types of devices. TheQPaintEngine
class is used internally byQPainter
andQPaintDevice
, and is hidden from application programmers unless they create their own device type.The main benefit of this approach is that all painting follows the same painting pipeline making it easy to add support for new features and providing default implementations for unsupported ones.
Topics¶
Classes for Painting¶
These classes provide support for painting onto a paint device.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.