Home · All Classes · All Functions · Overviews

QGraphicsAnchor Class Reference
[
QtGui module]

The 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

~QGraphicsAnchor ()
void setSpacing ( qreal spacing )
qreal spacing () const
void unsetSpacing ()

Additional Inherited Members


Detailed Description

The 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

spacing : qreal

This property holds the 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::anchor().


Member Function Documentation

QGraphicsAnchor::~QGraphicsAnchor ()

Removes the QGraphicsAnchor object from the layout and destroys it.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.0