Home · All Classes · Modules

QGraphicsScale Class Reference
[QtGui module]

The QGraphicsScale class provides a scale transformation. More...

Inherits QGraphicsTransform.

Methods

Qt Signals


Detailed Description

The QGraphicsScale class provides a scale transformation.

QGraphicsScene provides certain parameters to help control how the scale should be applied.

The origin is the point that the item is scaled from (i.e., it stays fixed relative to the parent as the rest of the item grows). By default the origin is QPointF(0, 0).

The parameters xScale, yScale, and zScale describe the scale factors to apply in horizontal, vertical, and depth directions. They can take on any value, including 0 (to collapse the item to a point) or negative value. A negative xScale value will mirror the item horizontally. A negative yScale value will flip the item vertically. A negative zScale will flip the item end for end.


Method Documentation

QGraphicsScale.__init__ (self, QObject parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

Constructs an empty QGraphicsScale object with the given parent.

QGraphicsScale.applyTo (self, QMatrix4x4 matrix)

Reimplemented from QGraphicsTransform.applyTo().

QVector3D QGraphicsScale.origin (self)

QGraphicsScale.setOrigin (self, QVector3D point)

QGraphicsScale.setXScale (self, float)

QGraphicsScale.setYScale (self, float)

QGraphicsScale.setZScale (self, float)

float QGraphicsScale.xScale (self)

float QGraphicsScale.yScale (self)

float QGraphicsScale.zScale (self)


Qt Signal Documentation

void originChanged ()

This is the default overload of this signal.

QGraphicsScale emits this signal when its origin changes.

See also QGraphicsScale.origin.

void scaleChanged ()

This is the default overload of this signal.

This signal is emitted whenever the xScale, yScale, or zScale of the object changes.

See also QGraphicsScale.xScale, QGraphicsScale.yScale, and QGraphicsScale.zScale.

void xScaleChanged ()

This is the default overload of this signal.

This signal is emitted whenever the xScale property changes.

This function was introduced in Qt 4.7.

void yScaleChanged ()

This is the default overload of this signal.

This signal is emitted whenever the yScale property changes.

This function was introduced in Qt 4.7.

void zScaleChanged ()

This is the default overload of this signal.

This signal is emitted whenever the zScale property changes.

This function was introduced in Qt 4.7.


PyQt 4.12.3 for X11Copyright © Riverbank Computing Ltd and The Qt Company 2015Qt 4.8.7