QGraphicsAnchorclass represents an anchor between two items in aQGraphicsAnchorLayout. 更多 …
4.6 版新增。
def
setSizePolicy
(policy)
def
setSpacing
(spacing)
def
sizePolicy
()
def
spacing
()
def
unsetSpacing
()
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(),QGraphicsAnchorinstance 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.另请参阅
PySide2.QtWidgets.QGraphicsAnchor.
setSizePolicy
(
policy
)
¶
policy
–
Policy
另请参阅
PySide2.QtWidgets.QGraphicsAnchor.
sizePolicy
(
)
¶
Policy
另请参阅
PySide2.QtWidgets.QGraphicsAnchor.
spacing
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QGraphicsAnchor.
unsetSpacing
(
)
¶