[PyQt] Re: QTableView selected item signals via QItemSelectionModel

2008-11-19 Thread Alberto Berti
> "Scott" == Scott Frankel <[EMAIL PROTECTED]> writes: Scott> Hello, Scott> What's the proper way to identify which row of a QTableView Scott> instance a user may have selected? The use of the QItemSelectionModel seems the right approach to me. The problem is then to identify wha

Re: [PyQt] QTableView selected item signals via QItemSelectionModel

2008-11-19 Thread Scott Frankel
Yes, thank you! For the record, this works: self.theSelectionModel = self.theView.selectionModel() self.connect(self.theSelectionModel, QtCore.SIGNAL("selectionChanged(QItemSelection, QItemSelection)"), self.getSelection) Scott On Nov 19, 2008, at 1:29 PM, Andreas P

Re: [PyQt] QTableView selected item signals via QItemSelectionModel

2008-11-19 Thread Andreas Pakulat
On 19.11.08 12:56:59, Scott Frankel wrote: > > Hello, > > What's the proper way to identify which row of a QTableView instance a > user may have selected? > > Pouring through the docs, and web searches, I think I've gotten close by > listening for signals from a QItemSelectionModel instance. I'

[PyQt] QTableView selected item signals via QItemSelectionModel

2008-11-19 Thread Scott Frankel
Hello, What's the proper way to identify which row of a QTableView instance a user may have selected? Pouring through the docs, and web searches, I think I've gotten close by listening for signals from a QItemSelectionModel instance. I'm still missing something though, as my implementat

Re: [PyQt] Re: ConvertToSubClass problem

2008-11-19 Thread Matt Newell
On Wednesday 19 November 2008 03:05:50 Matteo Bertini wrote: > Matt Newell ha scritto: > > Could you be more specific about the situation that is failing. What > > actual type is the object, and what is the return type of the function > > being called? > > > > Matt > > [EMAIL PROTECTED]:~/src$ cat

[PyQt] beginning help (QTreeWidget custom cell painting)

2008-11-19 Thread burton
Hello, I am learning PyQt (with the help of Summerfield's book) for a specific project. It's central aspect is a QTreeWidget which I dynamically populate through a TCP connection to a «legacy» server. Everything is working well. The QTree is populated on connection, and it's elements are

Re: [PyQt] PyInstaller and files

2008-11-19 Thread Giovanni Bajo
On Wed, 2008-11-19 at 08:44 -0200, Nahuel Defossé wrote: > Hi again, > when I build my application with PyInstaller 1.3, images are not loaded. In > the script these images are placed in the root folder of the project, but > even if I copy them to the dist folder which pyinstaller creates, they d

[PyQt] Re: ConvertToSubClass problem

2008-11-19 Thread Matteo Bertini
Matt Newell ha scritto: > Could you be more specific about the situation that is failing. What actual > type is the object, and what is the return type of the function being called? > > Matt > [EMAIL PROTECTED]:~/src$ cat bug_q3listview.py import sys from PyQt4.Qt import * if __name__ == "__

[PyQt] PyInstaller and files

2008-11-19 Thread Nahuel Defossé
Hi again, when I build my application with PyInstaller 1.3, images are not loaded. In the script these images are placed in the root folder of the project, but even if I copy them to the dist folder which pyinstaller creates, they don't get loaded :( The code is pretty simple, QPixmap('texture.

Re: [PyQt] QGraphicsView zoom demo

2008-11-19 Thread Nahuel Defossé
El Wednesday 19 November 2008 01:35:49 Nahuel Defossé escribió: > Hi! > I have a DWG drawing which I converted to svg, I would like to display it > on a QGraphicsView with zooming capabilities, scrolling seems natural to > QGraphicsView, but I haven't found any example of zoom (I don't care if > i