[PyQt] Re: Connecting two QGraphicsItems

Wolfgang Rohdewald wolfgang at rohdewald.de
Mon Apr 6 23:34:47 BST 2009


On Montag, 6. April 2009, Marcell Mars wrote:
> On Mon, Apr 6, 2009 at 4:13 PM, Mads <kofoden at yahoo.com> wrote:
> > each item needs to have separate functionality, so you should be able to set different
> > attributes on each item. Is the createItemGroup, still the best way forward?
> 
> to be more sure i would need more info about your app but as i saw i
> would definitively try createItemGroup and QGraphicsView.. i love
> QGraphicsView 

why not simply make the 3 circles children of the rectangle with
circle.setParentItem(rectangle)? The drawing seems to say that the line of
the rectangle should not be visible below the circles.

-- 
Wolfgang


More information about the PyQt mailing list