• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QGraphicsRotation

    下一话题

    QGraphicsScene

    QGraphicsScale

    注意

    该类在 Qt4.6 引入

    概要

    函数

    详细描述

    PySide.QtGui.QGraphicsScale class provides a scale transformation.

    PySide.QtGui.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 PySide.QtCore.QPointF (0, 0).

    参数 PySide.QtGui.QGraphicsScale.xScale() , PySide.QtGui.QGraphicsScale.yScale() ,和 PySide.QtGui.QGraphicsScale.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 PySide.QtGui.QGraphicsScale.xScale() value will mirror the item horizontally. A negative PySide.QtGui.QGraphicsScale.yScale() value will flip the item vertically. A negative PySide.QtGui.QGraphicsScale.zScale() will flip the item end for end.

    class PySide.QtGui. QGraphicsScale ( [ parent=None ] )
    参数: parent PySide.QtCore.QObject

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

    PySide.QtGui.QGraphicsScale. origin ( )
    返回类型: PySide.QtGui.QVector3D

    This property holds the origin of the scale in 3D space..

    All scaling will be done relative to this point (i.e., this point will stay fixed, relative to the parent, when the item is scaled).

    PySide.QtGui.QGraphicsScale. originChanged ( )
    PySide.QtGui.QGraphicsScale. scaleChanged ( )
    PySide.QtGui.QGraphicsScale. setOrigin ( point )
    参数: point PySide.QtGui.QVector3D

    This property holds the origin of the scale in 3D space..

    All scaling will be done relative to this point (i.e., this point will stay fixed, relative to the parent, when the item is scaled).

    PySide.QtGui.QGraphicsScale. setXScale ( arg__1 )
    参数: arg__1 PySide.QtCore.qreal

    This property holds the horizontal scale factor..

    The scale factor can be any real number; the default value is 1.0. If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be mirrored horizontally around its origin.

    PySide.QtGui.QGraphicsScale. setYScale ( arg__1 )
    参数: arg__1 PySide.QtCore.qreal

    This property holds the vertical scale factor..

    The scale factor can be any real number; the default value is 1.0. If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be flipped vertically around its origin.

    PySide.QtGui.QGraphicsScale. setZScale ( arg__1 )
    参数: arg__1 PySide.QtCore.qreal

    This property holds the depth scale factor..

    The scale factor can be any real number; the default value is 1.0. If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be flipped end for end around its origin.

    PySide.QtGui.QGraphicsScale. xScale ( )
    返回类型: PySide.QtCore.qreal

    This property holds the horizontal scale factor..

    The scale factor can be any real number; the default value is 1.0. If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be mirrored horizontally around its origin.

    PySide.QtGui.QGraphicsScale. xScaleChanged ( )
    PySide.QtGui.QGraphicsScale. yScale ( )
    返回类型: PySide.QtCore.qreal

    This property holds the vertical scale factor..

    The scale factor can be any real number; the default value is 1.0. If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be flipped vertically around its origin.

    PySide.QtGui.QGraphicsScale. yScaleChanged ( )
    PySide.QtGui.QGraphicsScale. zScale ( )
    返回类型: PySide.QtCore.qreal

    This property holds the depth scale factor..

    The scale factor can be any real number; the default value is 1.0. If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be flipped end for end around its origin.

    PySide.QtGui.QGraphicsScale. zScaleChanged ( )