| Home |
This is Qt 3's canvas module with a Qt 4 style API.
QtCanvas is a port to Qt 4 of Qt 3's QCanvas module. It is intended to be used in porting projects from Qt 3 to Qt 4. QtCanvas differs from the Qt3Canvas classes of the Qt3Support module in that the API has been updated to Qt 4 style. Hence, it facilitates "clean" Qt 4 ports which do not require Qt3Support.
It should be noted that this component is not recommended as the long-term choice for new Qt 4 projects, as Qt 4.2 is expected to provide a replacement for QCanvas, based on Qt 4's powerful new 2D paint system.
QtCanvas provides a highly optimized 2D graphic area that can contain an arbitrary number of items. Canvas items can have an arbitrary shape, size and content, can be freely moved around in the canvas, and can be checked for collisions. Canvas items can be set to move across the canvas automatically and animated canvas items are supported. Several item types are provided: ellipses, line segments, pixmaps, polygons, splines, sprites and texts. Custom items can be created using subclassing.
QtCanvas module uses a document/view model. The QtCanvasView class is used to show a particular view of a canvas. Multiple views can operate on the same canvas at the same time. Every view can use an arbitrary transformation matrix on the canvas which makes it easy to implement features such as zooming.
This Qt Solutions component is for Qt 4. For Qt 3 Solutions, please visit the Qt 3 Solutions Catalog.

| Copyright © 2006 Trolltech | Trademarks |