[PyQt] QGraphicsView item select

Alfredo Junior junixrj at yahoo.com
Wed Apr 11 21:52:17 BST 2012


Hey guys,

The Vincent solution was ok!
Now it works very fine.

Thank you.

Alfredo

----- Original Message -----
From: Vincent Vande Vyvre <vincent.vandevyvre at swing.be>
To: pyqt at riverbankcomputing.com
Cc: 
Sent: Wednesday, April 11, 2012 12:11 PM
Subject: Re: [PyQt] QGraphicsView item select

Le 11/04/12 17:00, Andreas Pakulat a écrit :
> 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
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
I don't think it's necessary, just it's more easy.

-- 
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte+7
<https://launchpad.net/qarte+7> . PaQager <https://launchpad.net/paqager>

_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list