GraphicsAnchor
Base classes
| Name | Children | Inherits |
|---|---|---|
| ObjectMixin prettyqt.core.object |
||
| QGraphicsAnchor PySide6.QtWidgets |
⋔ Inheritance diagram
graph TD
3525938137["widgets.GraphicsAnchor"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
4159408555["QtWidgets.QGraphicsAnchor"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
3227531497 --> 3525938137
2751680898 --> 3227531497
4159408555 --> 3525938137
3984060476 --> 4159408555
37984305 --> 3984060476
2751680898 --> 37984305
🛈 DocStrings
Bases: ObjectMixin, QGraphicsAnchor
Represents an anchor between two items in a QGraphicsAnchorLayout.
Source code in prettyqt/widgets/graphicsanchor.py
get_size_policy() -> widgets.sizepolicy.SizePolicyStr
set_size_policy(policy: widgets.sizepolicy.SizePolicyStr | widgets.QSizePolicy.Policy)
Set the size policy of the anchor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
policy
|
SizePolicyStr | Policy
|
size policy to use |
required |