Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QGraphicsItemGroup Class Reference
[
QtGui module]

The QGraphicsItemGroup class provides treating a group of items as one. More...

 #include <QGraphicsItemGroup>

Inherits QGraphicsItem.

This class was introduced in Qt 4.2.

Public Functions

Additional Inherited Members


Detailed Description

The QGraphicsItemGroup class provides treating a group of items as one.

See also QGraphicsItem and The Graphics View Framework.


Member Function Documentation

QGraphicsItemGroup::QGraphicsItemGroup ( QGraphicsItem * parent = 0, QGraphicsScene * scene = 0 )

Constructs a QGraphicsItemGroup. The parent and scene parameters are passed to QGraphicsItem's constructor.

QGraphicsItemGroup::~QGraphicsItemGroup ()

Destroys the QGraphicsItemGroup.

void QGraphicsItemGroup::addToGroup ( QGraphicsItem * item )

Adds the given item to this item group. The item will be reparented to this group, but its position and transformation relative to the scene will stay intact.

See also removeFromGroup() and QGraphicsScene::createItemGroup().

void QGraphicsItemGroup::removeFromGroup ( QGraphicsItem * item )

Removes the specified item from this group. The item will be reparented to this group's parent item, or to 0 if this group has no parent. Its position and transformation relative to the scene will stay intact.

See also addToGroup() and QGraphicsScene::destroyItemGroup().


Copyright © 2006 Trolltech Trademarks
Qt 4.2.1