[PyQt] QGraphicsView item select

Vincent Vande Vyvre vincent.vandevyvre at swing.be
Wed Apr 11 16:11:25 BST 2012


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>



More information about the PyQt mailing list