QGraphicsAnchor

The QGraphicsAnchor class represents an anchor between two items in a QGraphicsAnchorLayout . More

Inheritance diagram of PySide6.QtWidgets.QGraphicsAnchor

New in version 4.6.

Synopsis

Functions

Detailed Description

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() , a 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.

See also

anchor()

class PySide6.QtWidgets.QGraphicsAnchor
PySide6.QtWidgets.QGraphicsAnchor.setSizePolicy(policy)
Parameters

policyPolicy

See also

sizePolicy()

PySide6.QtWidgets.QGraphicsAnchor.setSpacing(spacing)
Parameters

spacing – float

See also

spacing()

PySide6.QtWidgets.QGraphicsAnchor.sizePolicy()
Return type

Policy

See also

setSizePolicy()

PySide6.QtWidgets.QGraphicsAnchor.spacing()
Return type

float

See also

setSpacing()

PySide6.QtWidgets.QGraphicsAnchor.unsetSpacing()