Home

QtGraphicsWidget Class Reference
[QtGui module]

The QtGraphicsWidget class provides addition functionality to that of QGraphicsWidget. More...

 #include <QtGraphicsWidget>

This class is under development and is subject to change.

Inherits QGraphicsWidget.

Properties

Public Functions

Additional Inherited Members


Detailed Description

The QtGraphicsWidget class provides addition functionality to that of QGraphicsWidget.

This class is part of The Animation Framework. It serves as a base class for new Graphics View controls.

QtGraphicsWidget adds support for some new properties to be used in conjunction with the animations classes. In particular it declares the new properties pos, geometry and zValue. In addition to that it adds new properties that allow you to animate its own trnsformation. So you have now x/y/zRotation, x/yScale and transformOrigin, to gether with their respective getters and setters.

See also QtPropertyAnimation and The Animation Framework.


Property Documentation

geometry : const QRectF

This property holds the geometry of the widget.

This property holds the geometry of the graphicswidget

See also QGraphicsWidget::geometry().

pos : const QPointF

This property holds the position of the widget.

This property holds the position of the graphicswidget

See also QGraphicsItem::pos() and geometry.

transformOrigin : QPointF

This property holds the origin of the scale and rotate transformations.

With this property you can set the point at which the rotate and scale operations will use as a origin. This is useful if you for instance want to move an item in a circle around a center point.

Access functions:

See also zRotation, xScale, and yScale.

xRotation : qreal

This property holds the rotation of the item around the x-axis.

This property holds the rotation of the item around the x-axis.

Access functions:

See also yRotation and zRotation.

xScale : qreal

This property holds the scaling of the item along the x-axis.

This property holds the scaling of the item along the x-axis.

Access functions:

See also yScale.

yRotation : qreal

This property holds the rotation of the item around the y-axis.

This property holds the rotation of the item around the y-axis.

Access functions:

See also xRotation and zRotation.

yScale : qreal

This property holds the scaling of the item along the y-axis.

This property holds the scaling of the item along the y-axis.

Access functions:

See also xScale.

zRotation : qreal

This property holds the rotation of the item around the z-axis.

This property holds the rotation of the item around the z-axis.

Access functions:

See also xRotation and yRotation.

zValue : const qreal

This property holds the stacking order of the item.

This property holds the the stacking order of the item.

See also QGraphicsItem::zValue() and QGraphicsItem::setZValue().


Member Function Documentation

QtGraphicsWidget::QtGraphicsWidget ( QGraphicsItem * parent = 0, Qt::WindowFlags wflags = 0 )

constructs a QtGraphicsWidget with the parent parent and window flags to wflags.

QtGraphicsWidget::~QtGraphicsWidget ()

destroys the QtGraphicsWidget


Copyright © 2009 Nokia Trademarks
Qt Solutions