[PyQt] Shouldn't an item view keep a reference to its associated model?

2007-07-19 Thread Florent Rougon
Hello, I had a hard time figuring out why my QAbstractItemModel subclass wasn't working properly. I added debug statements everywhere, which showed that my subclass was behaving fine. The only symptoms were: 1. The associated QTreeView() had an empty display. 2. My model was only queried for

Re: [PyQt] QAbstractItemModel.setData() and emit

2007-07-19 Thread Tom Brown
On Thursday 19 July 2007 15:27, Andreas Pakulat wrote: > You don't need a full PostgreSQL installation, all you need is the > client library which is normally available as dll. Also you always need > that client lib no matter how you do the db access (i.e. Qt, some python > module...) I am using p

Re: [PyQt] QAbstractItemModel.setData() and emit

2007-07-19 Thread Andreas Pakulat
On 19.07.07 13:53:30, Tom Brown wrote: > I started out using the Qt models for four comboxes. This was during > development on my linux box. That worked very well and I was able to easily > subclass QSQLQueryModel. Then I went to test it out in Windows and it > wouldn't run because it needed Pos

Re: [PyQt] QAbstractItemModel.setData() and emit

2007-07-19 Thread Tom Brown
On Thursday 19 July 2007 13:16, Andreas Pakulat wrote: > On 19.07.07 12:54:25, Tom Brown wrote: > > def index(self, row, column, parent): > > data = self.queryData[row][column] > > return self.createIndex(row, column, data) > > You don't need the internalPointer data here, after all you i

Re: [PyQt] Qt 4.3?

2007-07-19 Thread Andreas Pakulat
On 19.07.07 16:24:17, Hernán Rajchert wrote: > stable? if not how unstable :P Pretty stable. Sometimes Phil introduces smaller bugs (although that happened more before the first PyQt4 release) but they are fixed the next day normally. I worked with the PyQt4 snapshots before the .0.0 release and

Re: [PyQt] QAbstractItemModel.setData() and emit

2007-07-19 Thread Andreas Pakulat
On 19.07.07 12:54:25, Tom Brown wrote: > def index(self, row, column, parent): > data = self.queryData[row][column] > return self.createIndex(row, column, data) You don't need the internalPointer data here, after all you index your data table with the row and column from the model index.

Re: [PyQt] Qt 4.3?

2007-07-19 Thread Tom Brown
On Thursday 19 July 2007 12:24, Hernán Rajchert wrote: > stable? if not how unstable :P > > On 7/19/07, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > On 19.07.07 15:38:28, Hernán Rajchert wrote: > > > When would the qt version 4.3 will be added? im looking for making > > > > wizards > > > > Fetch

Re: [PyQt] QAbstractItemModel.setData() and emit

2007-07-19 Thread Tom Brown
On Thursday 19 July 2007 10:41, Andreas Pakulat wrote: > On 19.07.07 09:14:20, Tom Brown wrote: > > On Wednesday 18 July 2007 15:40, Andreas Pakulat wrote: > > > On 18.07.07 14:58:11, Tom Brown wrote: > > > > Hi, > > > > > > > > I am using PyQt4 with Qt 4.2.3. I have subclassed QAbstractItemModel >

Re: [PyQt] Qt 4.3?

2007-07-19 Thread Hernán Rajchert
stable? if not how unstable :P On 7/19/07, Andreas Pakulat <[EMAIL PROTECTED]> wrote: On 19.07.07 15:38:28, Hernán Rajchert wrote: > When would the qt version 4.3 will be added? im looking for making wizards Fetch a snapshot, they support 4.3 Andreas -- You worry too much about your job. St

Re: [PyQt] Re: Crash with shortcircuit signals

2007-07-19 Thread Giovanni Bajo
On 18/07/2007 22.43, Phil Thompson wrote: I copied the list removal code back into the destructor (keeping a duped copy in the disable() slot), and it seems to work. Do you agree on this fix? Testcases are really hard and tiresome to extract so I'd rather avoid it if it's not really really nece

Re: [PyQt] Qt 4.3?

2007-07-19 Thread Andreas Pakulat
On 19.07.07 15:38:28, Hernán Rajchert wrote: > When would the qt version 4.3 will be added? im looking for making wizards Fetch a snapshot, they support 4.3 Andreas -- You worry too much about your job. Stop it. You are not paid enough to worry. ___

[PyQt] Qt 4.3?

2007-07-19 Thread Hernán Rajchert
When would the qt version 4.3 will be added? im looking for making wizards ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QAbstractItemModel.setData() and emit

2007-07-19 Thread Andreas Pakulat
On 19.07.07 09:14:20, Tom Brown wrote: > On Wednesday 18 July 2007 15:40, Andreas Pakulat wrote: > > On 18.07.07 14:58:11, Tom Brown wrote: > > > Hi, > > > > > > I am using PyQt4 with Qt 4.2.3. I have subclassed QAbstractItemModel to > > > create a custom model for a custom combobox. I have overrid

Re: [PyQt] QAbstractItemModel.setData() and emit

2007-07-19 Thread Tom Brown
On Wednesday 18 July 2007 15:40, Andreas Pakulat wrote: > On 18.07.07 14:58:11, Tom Brown wrote: > > Hi, > > > > I am using PyQt4 with Qt 4.2.3. I have subclassed QAbstractItemModel to > > create a custom model for a custom combobox. I have overridden the > > setData() method and keep getting this

Re: [PyQt] super()

2007-07-19 Thread Carlos Scheidegger
>> I would like all the function calls to be consistent so that there's less >> risks of future gotchas when changing classes to use mixins. Is multiple >> inheritance in PyQt generally considered a bad idea? What are PyQt best >> practices when it comes to mixins? > > http://www.riverbankcomputi

Re: [PyQt] super()

2007-07-19 Thread Phil Thompson
On Wednesday 18 July 2007 10:32 pm, Carlos Scheidegger wrote: > Hello, > > Is there a recommended way of using super() on PyQt objects? Is that > considered in general a horrible idea? Here's the problem. We have a few > mixin classes we use in our code, and we multiply inherit them. Some of > thes