[PyQt] Getting a segfault when I close my program

dizou di_zou at yahoo.com
Thu Mar 11 20:03:07 GMT 2010



Darryl Wallace wrote:
> 
> 
> I believe it's because you can't have the "self.rightSpacer" object in two
> different places.  My guess is you're getting the segfault because when
> the first layout is destroyed it cleans up the self.rightSpacer.  Then
> when the second layout is destroyed it's trying to clean up the
> self.rightSpacer, but it's been deallocated already.
> 
> Try using a different spacer object for each layout, e.g.:
> treeControlLayout.addItem(QSpacerItem(10, 0, QSizePolicy.Expanding), 0,8)
> viewControlLayout.addItem(QSpacerItem(10, 0, QSizePolicy.Expanding), 0, 8)
> 
> 
> Darryl
> 
That has worked. Thank you.
-- 
View this message in context: http://old.nabble.com/Getting-a-segfault-when-I-close-my-program-tp27799395p27869060.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list