PythonQt.QtGui.QGraphicsAnchor · declarations 001
Back to PythonQt.QtGui.QGraphicsAnchor
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsAnchor.destroyed; argument details are not documented.
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsAnchor.objectNameChanged; argument details are not documented.
setSizePolicy
setSizePolicy(policy: Any) -> None
X.setSizePolicy(policy)
Upstream PySide2 reference signatures (binding differences may apply):
setSizePolicy(self, policy: PySide2.QtWidgets.QSizePolicy.Policy) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsanchor.html#setSizePolicy
setSpacing
setSpacing(spacing: float) -> None
X.setSpacing(spacing)
Upstream PySide2 reference signatures (binding differences may apply):
setSpacing(self, spacing: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsanchor.html#setSpacing
sizePolicy
instance-attribute
sizePolicy: Any
Qt 5 reference:
sizePolicy : QSizePolicy::Policy
This property holds the size policy for the 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. QGraphicsAnchor always has a minimum spacing of 0 and a very large maximum spacing.
Access functions:
| QSizePolicy::Policy | sizePolicy() const |
|---|---|
| void | setSizePolicy(QSizePolicy::Policy policy) |
See also QGraphicsAnchor::spacing.
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsanchor.html#sizePolicy
spacing
instance-attribute
spacing: float
Qt 5 reference:
spacing : qreal
This property holds the preferred space between items in the QGraphicsAnchorLayout.
Depending on the anchor type, the default spacing is either 0 or a value returned from the style.
Access functions:
| qreal | spacing() const |
|---|---|
| void | setSpacing(qreal spacing) |
| void | unsetSpacing() |
See also QGraphicsAnchorLayout::addAnchor().
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsanchor.html#spacing
unsetSpacing
unsetSpacing() -> None
X.unsetSpacing()
Upstream PySide2 reference signatures (binding differences may apply):
unsetSpacing(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsanchor.html#unsetSpacing