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

    上一话题

    QDataWidgetMapper

    下一话题

    QItemSelectionModel

    QGraphicsAnchor

    注意

    该类在 Qt4.6 引入

    概要

    函数

    详细描述

    PySide.QtGui.QGraphicsAnchor class represents an anchor between two items in a PySide.QtGui.QGraphicsAnchorLayout .

    The graphics anchor provides an API that enables you to query and manipulate the properties an anchor has. When an anchor is added to the layout with QGraphicsAnchorLayout.addAnchor() PySide.QtGui.QGraphicsAnchor instance is returned where the properties are initialized to their default values. The properties can then be further changed, and they will be picked up the next time the layout is activated.

    PySide.QtGui.QGraphicsAnchor. setSizePolicy ( policy )
    参数: policy PySide.QtGui.QSizePolicy.Policy

    此特性保持尺寸策略为 PySide.QtGui.QGraphicsAnchor ..

    By setting the size policy on an anchor you can configure how the anchor can resize itself from its preferred spacing. For instance, if the anchor has the size policy QSizePolicy.Minimum , the spacing is the minimum size of the anchor. However, its size can grow up to the anchors maximum size. If the default size policy is QSizePolicy.Fixed , the anchor can neither grow or shrink, which means that the only size the anchor can have is the spacing. QSizePolicy.Fixed is the default size policy. PySide.QtGui.QGraphicsAnchor always has a minimum spacing of 0 and a very large maximum spacing.

    PySide.QtGui.QGraphicsAnchor. setSpacing ( spacing )
    参数: spacing PySide.QtCore.qreal

    This property holds the preferred space between items in the PySide.QtGui.QGraphicsAnchorLayout ..

    Depending on the anchor type, the default spacing is either 0 or a value returned from the style.

    PySide.QtGui.QGraphicsAnchor. sizePolicy ( )
    返回类型: PySide.QtGui.QSizePolicy.Policy

    此特性保持尺寸策略为 PySide.QtGui.QGraphicsAnchor ..

    By setting the size policy on an anchor you can configure how the anchor can resize itself from its preferred spacing. For instance, if the anchor has the size policy QSizePolicy.Minimum , the spacing is the minimum size of the anchor. However, its size can grow up to the anchors maximum size. If the default size policy is QSizePolicy.Fixed , the anchor can neither grow or shrink, which means that the only size the anchor can have is the spacing. QSizePolicy.Fixed is the default size policy. PySide.QtGui.QGraphicsAnchor always has a minimum spacing of 0 and a very large maximum spacing.

    PySide.QtGui.QGraphicsAnchor. spacing ( )
    返回类型: PySide.QtCore.qreal

    This property holds the preferred space between items in the PySide.QtGui.QGraphicsAnchorLayout ..

    Depending on the anchor type, the default spacing is either 0 or a value returned from the style.

    PySide.QtGui.QGraphicsAnchor. unsetSpacing ( )

    This property holds the preferred space between items in the PySide.QtGui.QGraphicsAnchorLayout ..

    Depending on the anchor type, the default spacing is either 0 or a value returned from the style.