[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] QTabWidget.removeTab() causes segfault
From: Necoro <lists () necoro ! eu>
Date: 2007-05-31 20:17:27
Message-ID: 465F2D57.6080606 () necoro ! eu
[Download RAW message or body]
Hi,
I currently switched from PyQt-4.1.1 to PyQt-4.2. Now my application
segfaults on quitting.
In my application I have the following:
class Details:
def __init__ (self, window, ...):
window.pkgTab.setHidden(True) # hide the tab
window.tabWidget.removeTab(0) # remove the tab we just hid
def update (self):
# first update -> show
if self.window.pkgTab.isHidden():
self.window.tabWidget.insertTab(0, self.window.pkgTab,
"Package")
self.window.pkgTab.setHidden(False)
Now, if update() is not called, it segfaults on quitting. If it _is_
called, everything works just fine.
I think, that this change may cause the problem :):
2007/03/22 16:08:04 phil
Added /TransferBack/ functionality to QTabWidget.removeTab().
Additionally some background information, as it might matter:
The window passed to Details is a QMainWindow subclass, which is
generated at runtime using a "*.ui"-file. In this ui-file, the tab I am
playing with is already existing - in other words: I have a TabWidget
with some tabs defined in the *.ui. And on startup I remove the first tab.
Regards,
Nec
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic