I've experienced a bug which after a few hours found someone else is experiencing also, and explained in detail<br><br><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><pre class="message" style="font-family: monospace; padding-top: 0px; margin-top: 0px; border-top-width: 0px;">
In a Python program I use setItemWidget() to add widgets to columns<br>of QTreeWidgetItems (eg QPushButton, QComboBox, etc).<br><br>When a widget is no longer needed it is removed using removeItemWidget(),<br>however this action causes the removal of the QTreeWidgetItem itself<br>
instead of just removing the item widget attached by setItemWidget().<br><br>Problem goes away if extra references to QTreeWidgetItems are kept<br>somewhere outside the QTreeWidget instance.<br><br>This problem does not occur in a C++ implementation.</pre>
</span><br><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599612">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599612</a><br><br>Are the pyqt developers aware of this?<br><br>Regards<br><br>Pete<br>