Hello, -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of dizou Sent: March-11-10 2:54 PM To: [email protected] Subject: Re: [PyQt] Getting a segfault when I close my program
If I take out the line: treeControlLayout.addItem(self.rightSpacer, 0, 8) or viewControlLayout.addItem(self.rightSpacer, 0, 8) I don't get the segfault anymore. So I can't have both of those lines of code in. ---- 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 _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
