Re: [PyQt] RuntimeError: underlying C/C++ object has been deleted

2009-04-27 Thread Alexandr N Zamaraev
Alexandr N Zamaraev wrote: I reproduce this with sip-4.8-snapshot-20090424 (self build) PyQt-win-gpl-4.5-snapshot-20090328 (self build) Call Garbage Collector after the closing of the dialogue does not produce any effect. Sorry. I found. This is my reference cycle.

Re: [PyQt] RuntimeError: underlying C/C++ object has been deleted

2009-04-27 Thread Demetrius Cassidy
You cannot instantiate a base class wrapped through sip with super. You need to directly call the base class contructor via the __init__ method. I quote "The way that super is currently implemented means that the lazy lookup is bypassed resulting in AttributeError exceptions unless the attribute

Re: [PyQt] RuntimeError: underlying C/C++ object has been deleted

2009-04-26 Thread Alexandr N Zamaraev
Alexandr N Zamaraev wrote: Os Windows Vista Home Ru + sp1 g++ (GCC) 3.4.5 (mingw-vista special r3) Qt 4.5 (self build) sip-4.7.9 (self build) PyQt-win-gpl-4.4.4.zip (self build) I reproduce this with sip-4.8-snapshot-20090424 (self build) PyQt-win-gpl-4.5-snapshot-20090328 (self build) Call Gar

Re: [PyQt] RuntimeError: underlying C/C++ object has been deleted

2009-04-23 Thread Alexandr N Zamaraev
Looks like I got very simplified code. The real hierarchy for the Data and Model looks like this (may be more levels): [code] class BaseData(QObject): def __init__(self): super(BaseData, self).__init__() ... class FinalData(BaseData): ... class BaseModel(QAbstractItemModel): def _

Re: [PyQt] RuntimeError: underlying C/C++ object has been deleted

2009-04-23 Thread Mads Ipsen
> Os Windows Vista Home Ru + sp1 > g++ (GCC) 3.4.5 (mingw-vista special r3) > Qt 4.5 (self build) > sip-4.7.9 (self build) > PyQt-win-gpl-4.4.4.zip (self build) > > I was unable to allocate a minimum example. Here is pseudocode situations: > [code] > > class BaseData(QObject): >def save(self, o

[PyQt] RuntimeError: underlying C/C++ object has been deleted

2009-04-23 Thread Alexandr N Zamaraev
Os Windows Vista Home Ru + sp1 g++ (GCC) 3.4.5 (mingw-vista special r3) Qt 4.5 (self build) sip-4.7.9 (self build) PyQt-win-gpl-4.4.4.zip (self build) I was unable to allocate a minimum example. Here is pseudocode situations: [code] class BaseData(QObject): def save(self, obj): self.emit(Q