[PyQt] QGraphicsView item select

Andreas Pakulat apaku at gmx.de
Sat Apr 7 11:05:07 BST 2012


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 about the games.
> Now, I need these items to be selectable (simultaneously).
> The moment I select a game in QTableWidget, it must be selected in QGraphicsView (if it exists) and vice versa.
> I have no idea how can I do this.

Listen to the corresponding selecion-changed signals of the views and
then update the selection on the corrwpspndig "other" one.

Andreas



More information about the PyQt mailing list