QGraphicsAnchor¶
The
QGraphicsAnchor
class represents an anchor between two items in aQGraphicsAnchorLayout
. More…
New in version 4.6.
Synopsis¶
Functions¶
def
setSizePolicy
(policy)def
setSpacing
(spacing)def
sizePolicy
()def
spacing
()def
unsetSpacing
()
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()
, aQGraphicsAnchor
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
-
PySide2.QtWidgets.QGraphicsAnchor.
setSizePolicy
(policy)¶ - Parameters
policy –
Policy
See also
-
PySide2.QtWidgets.QGraphicsAnchor.
setSpacing
(spacing)¶ - Parameters
spacing –
qreal
See also
-
PySide2.QtWidgets.QGraphicsAnchor.
sizePolicy
()¶ - Return type
Policy
See also
-
PySide2.QtWidgets.QGraphicsAnchor.
spacing
()¶ - Return type
qreal
See also
-
PySide2.QtWidgets.QGraphicsAnchor.
unsetSpacing
()¶
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.