|  | 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.

- List of all members, including inherited members

### Public Functions

- QGraphicsItemGroup ( QGraphicsItem * parent = 0, QGraphicsScene * scene = 0 )
- ~QGraphicsItemGroup ()
- void addToGroup ( QGraphicsItem * item )
- void removeFromGroup ( QGraphicsItem * item )

- 105 public functions inherited from QGraphicsItem

### Additional Inherited Members

- 1 static public member inherited from QGraphicsItem
- 23 protected functions inherited from QGraphicsItem

## 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().