内容表

上一话题

QGestureRecognizer

下一话题

QGraphicsAnchorLayout

QGraphicsAnchor

QGraphicsAnchor class represents an anchor between two items in a QGraphicsAnchorLayout . 更多

Inheritance diagram of PySide2.QtWidgets.QGraphicsAnchor

4.6 版新增。

概要

函数

详细描述

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 addAnchor() 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.

另请参阅

anchor()

PySide2.QtWidgets.QGraphicsAnchor. setSizePolicy ( policy )
参数

policy Policy

另请参阅

sizePolicy()

PySide2.QtWidgets.QGraphicsAnchor. setSpacing ( spacing )
参数

spacing qreal

另请参阅

spacing()

PySide2.QtWidgets.QGraphicsAnchor. sizePolicy ( )
返回类型

Policy

另请参阅

setSizePolicy()

PySide2.QtWidgets.QGraphicsAnchor. spacing ( )
返回类型

qreal

另请参阅

setSpacing()

PySide2.QtWidgets.QGraphicsAnchor. unsetSpacing ( )