Re: [PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-28 Thread Hans Meine
Hi everybody, hi Phil, Op den Dunnersdag 28 Oktober 2010 Klock 14:28:16 hett Hans Meine schreven: > I am about to give up now, but first I want to post my current code again; > I added some assertions which show an interesting fact which I have no > explanation for: One assertion fails, since I a

Re: [PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-28 Thread Hans Meine
Op den Dunnersdag 28 Oktober 2010 Klock 15:08:16 hett Dan Halbert schreven: > On Thursday, October 28, 2010 8:28am, "Hans Meine" said: > > I am about to give up now, but first I want to post my current code > > again; I added some assertions which show an interesting fact which I > > have no expla

Re: [PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-28 Thread Dan Halbert
On Thursday, October 28, 2010 8:28am, "Hans Meine" said: > I am about to give up now, but first I want to post my current code again; I > added some assertions which show an interesting fact which I have no > explanation for: One assertion fails, since I am getting a QModelIndex of my > proxy mo

Re: [PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-28 Thread Hans Meine
Hi again! I am about to give up now, but first I want to post my current code again; I added some assertions which show an interesting fact which I have no explanation for: One assertion fails, since I am getting a QModelIndex of my proxy model in which internalPointer does *not* contain a QMo

Re: [PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-28 Thread Hans Meine
Hi Hans-Peter, thanks for your reply. Am 27.10.2010 um 22:17 schrieb Hans-Peter Jansen: > Not here. After fixing the obvious bug in headerData to actually call > headerData, I get (with needPersistentModelIndex = False): Yes, headerData() was broken; actually, AFAIK it is not even necessary at

Re: [PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-27 Thread Hans-Peter Jansen
On Wednesday 27 October 2010, 20:34:18 Hans Meine wrote: > Hi, > > I am having lots of crashes with my implementation of a dummy proxy > model. Could someone please look at this and tell me at which point I > am being stupid (and blind) or whether this is a problem with [Py]Qt? > > I have attached

[PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-27 Thread Hans Meine
Hi, I am having lots of crashes with my implementation of a dummy proxy model. Could someone please look at this and tell me at which point I am being stupid (and blind) or whether this is a problem with [Py]Qt? I have attached a stripped down test case that crashes for me (i.e. segfault/ bus