Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Alfredo Junior
Hey guys, The Vincent solution was ok! Now it works very fine. Thank you. Alfredo - Original Message - From: Vincent Vande Vyvre To: pyqt@riverbankcomputing.com Cc: Sent: Wednesday, April 11, 2012 12:11 PM Subject: Re: [PyQt] QGraphicsView item select Le 11/04/12 17:00, Andreas

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Vincent Vande Vyvre
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

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Andreas Pakulat
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 tryi

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Alfredo Junior
Thank you Vincent. I'll try right now.   Alfredo - Original Message - From: Vincent Vande Vyvre To: pyqt@riverbankcomputing.com Cc: Sent: Wednesday, April 11, 2012 11:13 AM Subject: Re: [PyQt] QGraphicsView item select Le 11/04/12 15:46, Alfredo Junior a écrit : > OK,

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Vincent Vande Vyvre
Le 11/04/12 15:46, Alfredo Junior a écrit : > OK, I'll try. > > Thank you. > > - Original Message - > From: Andreas Pakulat > To: "pyqt@riverbankcomputing.com" > Cc: > Sent: Wednesday, April 11, 2012 10:28 AM > Subject: Re: [PyQt] QGrap

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Alfredo Junior
OK, I'll try. Thank you. - Original Message - From: Andreas Pakulat To: "pyqt@riverbankcomputing.com" Cc: Sent: Wednesday, April 11, 2012 10:28 AM Subject: Re: [PyQt] QGraphicsView item select On 11.04.12 06:02:09, Alfredo Junior wrote: > OK. > > This

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Andreas Pakulat
On 11.04.12 06:02:09, Alfredo Junior wrote: > OK. > > This is a functional example: > > #!/usr/bin/python > # -*- coding: utf-8 -*- > > import sys > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > def itemSelected(self): >     print "Selection changed" >      > app = QApplication(sys

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Alfredo Junior
_006.png Thanks. - Original Message - From: Andreas Pakulat To: "pyqt@riverbankcomputing.com" Cc: Sent: Wednesday, April 11, 2012 3:50 AM Subject: Re: [PyQt] QGraphicsView item select On 10.04.12 20:05:19, Alfredo Junior wrote: > Thank you for your help. > > But I can

Re: [PyQt] QGraphicsView item select

2012-04-10 Thread Andreas Pakulat
On 10.04.12 20:05:19, Alfredo Junior wrote: > Thank you for your help. > > But I can't make something like that. > > In my example only tableWidget works: > > class Init(QtGui.QMainWindow): >     def __init__(self): >         super(Init, self).__init__() >         self.initUI() >     def initUI(

Re: [PyQt] QGraphicsView item select

2012-04-10 Thread Alfredo Junior
o: pyqt@riverbankcomputing.com Cc: Sent: Saturday, April 7, 2012 7:05 AM Subject: Re: [PyQt] QGraphicsView item select On 06.04.12 11:32:34, Alfredo Junior wrote: > Hi people,  > > I am writing a PyQt application. > There is a sqlite database where I store data collected from the mame > g

Re: [PyQt] QGraphicsView item select

2012-04-07 Thread Andreas Pakulat
On 06.04.12 11:32:34, Alfredo Junior wrote: > Hi people,  > > I am writing a PyQt application. > There is a sqlite database where I store data collected from the mame > games(mamedev.org). > I created a QGraphicsView with the screens of the games. > Also created a QTableWidget with information ab

[PyQt] QGraphicsView item select

2012-04-06 Thread Alfredo Junior
Hi people,  I am writing a PyQt application. There is a sqlite database where I store data collected from the mame games(mamedev.org). I created a QGraphicsView with the screens of the games. Also created a QTableWidget with information about the games. Now, I need these items to be selectable (s