[PyKDE] QTreeWidget's segfaulting on destruction

Andreas Pakulat apaku at gmx.de
Tue May 9 15:50:52 BST 2006


On 09.05.06 09:35:21, Phil Thompson wrote:
> On Monday 08 May 2006 10:37 pm, Andreas Pakulat wrote:
> > replying to another post from here I "accidentally stumbled" accross the
> > following segfault (testcase attached):
> >
> > Am I doing something wrong or is this a bug?
> 
> I think you are doing something wrong as you are adding both the 
> QTreeWidgetItems twice - once by passing a parent to the ctor and also 
> explicitly by calls to addChild() and addTopLevelItem().

Dooh :-)

BTW: The same happens in C++...

Andreas

-- 
You are destined to become the commandant of the fighting men of the
department of transportation.




More information about the PyQt mailing list