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

- 102 public functions inherited from QGraphicsItem

### Additional Inherited Members

- 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. parent and scene are passed to QGraphicsItem's constructor.

### QGraphicsItemGroup::~QGraphicsItemGroup ()

Destroys the QGraphicsItemGroup.

### void QGraphicsItemGroup::addToGroup ( QGraphicsItem * item )

Adds item to this item group. 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 item from this group. item will be reparented to this group's parent item, or to 0 if this group has no parent. item's position and transformation relative to the scene will stay intact.

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