QGraphicsAnchor Class ReferenceThe QGraphicsAnchor class represents an anchor between two items in a QGraphicsAnchorLayout. More... #include <QGraphicsAnchor> Inherits: QObject. This class was introduced in Qt 4.6. Properties
Public Functions
Additional Inherited Members
Detailed DescriptionThe QGraphicsAnchor class represents an anchor between two items in a QGraphicsAnchorLayout. 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 QGraphicsAnchorLayout::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 QGraphicsAnchorLayout::anchor(). Property Documentation
|
QSizePolicy::Policy | sizePolicy () const |
void | setSizePolicy ( QSizePolicy::Policy policy ) |
See also QGraphicsAnchor::spacing.
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().
Removes the QGraphicsAnchor object from the layout and destroys it.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.