[PyKDE] PyQT Segfault on widget removal.
Henry Kleynhans
henry at obsidian.co.za
Wed Jun 18 12:25:01 BST 2003
Hi All,
Given the recent segfault discussion, I have attached an example piece of code
which segfaults. I am not sure if this is a bug, or just my own stupidity
though. According to the PyQT book, the way to remove a widget from it's
parent is to do the following:
myParent.removeChild(myChild)
del myChild
The PyQT/Sip bindings seems to break if these commands gets triggered by a
signal from within a child widget of the widget that is to be removed.
I get a segfault when I do the following:
1. Run the program (testdel.py)
2. Click on the DelButton button.
3. Switch to another application using Alt-Tab
4. Switch back to my testdel app.
This happens under RH9.0. (Python-2.2.2-26, PyQt-3.5-5, qt-3.1.1-6) I use the
KDE desktop environment.
Does anyone know if this is a bug or how to fix/workaround this?
TIA,
Kind regards,
Henry
--
Henry Kleynhans <henry at obsidian.co.za>
Obsidian Systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testdel.py
Type: text/x-python
Size: 1276 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20030618/e04ae356/testdel.py
More information about the PyQt
mailing list