Home · All Classes · Modules

QGraphicsItemGroup Class Reference
[QtGui module]

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

Inherits QGraphicsItem.

Methods


Detailed Description

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

See also QGraphicsItem and The Graphics View Framework.


Method Documentation

QGraphicsItemGroup.__init__ (self, QGraphicsItem parent = None, QGraphicsScene scene = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

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

QGraphicsItemGroup.addToGroup (self, QGraphicsItem item)

The item argument has it's ownership transferred to Qt.

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

QRectF QGraphicsItemGroup.boundingRect (self)

bool QGraphicsItemGroup.isObscuredBy (self, QGraphicsItem item)

QPainterPath QGraphicsItemGroup.opaqueArea (self)

QGraphicsItemGroup.paint (self, QPainter painter, QStyleOptionGraphicsItem option, QWidget widget = None)

QGraphicsItemGroup.removeFromGroup (self, 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().

int QGraphicsItemGroup.type (self)


PyQt 4.1 for X11Copyright © Riverbank Computing Ltd and Trolltech AS 2006Qt 4.2.1