[PyQt] PyQt4 QTableWidget crashed/hang when sorting
nEO (a.k.a. gentoo.cn)
gentoo.cn at gmail.com
Fri Sep 14 10:26:01 BST 2007
Platform:
Win32 PyQt4.3.0-GPL with Qt-4.3.1-opensource, Python 2.5
Symptoms:
QTableWiget sort by a long string column, after remove some rows,
then sort again will deak lock or crashed. Sometimes can got a msg
from console:
"Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there."
Test Program:
see attachment: testTbw.py
Usage:
run testTbw.py and click some cell wait a while program will crashed.
Maybe it's caused by a GC problem or TableWidget's model r/w competition.
Anyone can help me find root cause and how to fix it?
--
I'm the one, powered by nEO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testTbw.py
Type: text/x-python
Size: 2793 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070914/1f12dd88/testTbw.py
More information about the PyQt
mailing list