QGraphicsScale Class Reference

[ QtGui module]

QGraphicsScale 类提供比例缩放变换。 更多...

继承 QGraphicsTransform .

方法

Qt Signals


详细描述

QGraphicsScale 类提供比例缩放变换。

QGraphicsScene 提供 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).

参数 xScale , yScale ,和 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.


方法文档编制

QGraphicsScale.__init__ ( self , QObject   parent  = None)

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

构造空 QGraphicsScale 对象采用给定 parent .

QGraphicsScale.applyTo ( self , QMatrix4x4   matrix )

重实现自 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.

另请参阅 QGraphicsScale.origin .

void scaleChanged ()

This is the default overload of this signal.

此信号被发射每当 xScale , yScale ,或 zScale of the object 改变。

另请参阅 QGraphicsScale.xScale , QGraphicsScale.yScale ,和 QGraphicsScale.zScale .

void xScaleChanged ()

This is the default overload of this signal.

此信号被发射每当 xScale 特性改变。

该函数在 Qt 4.7 引入。

void yScaleChanged ()

This is the default overload of this signal.

此信号被发射每当 yScale 特性改变。

该函数在 Qt 4.7 引入。

void zScaleChanged ()

This is the default overload of this signal.

此信号被发射每当 zScale 特性改变。

该函数在 Qt 4.7 引入。