[PyQt] QGraphicsView item select

Andreas Pakulat apaku at gmx.de
Wed Apr 11 16:00:16 BST 2012


On 11.04.12 16:13:09, Vincent Vande Vyvre wrote:
> You'll be more easy if you subclass your QGraphicsPixmapItem.
> 
> Example: the item can return his index, or name or identifier, etc.

This example will still not emit a selection-change signal so won't help
the OP at all. No idea what you're trying to show here and no idea why
you think its necessary to override standard item behaviour when Qt
already provides the necessary information. The scene has a list of
selected items which can be used in the slot to do something with them.

Andreas



More information about the PyQt mailing list