David, <br><br>Thanks for looking into the problem. I upgraded to PyQt 4.2, Qt 4.3 and then I got the same results that you did. It worked correctly using setItemDelegateForColumn(). I double checked what my previous version of Qt was and it was
4.2.1. So it appears that this may have been a bug that was fixed in version 4.2.2.<br><br>Brian DeWeese<br><br><div><span class="gmail_quote">On 6/7/07, <b class="gmail_sendername">David Boddie</b> <<a href="mailto:email@example.com">
firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Wednesday 06 June 2007 10:00:10 -0500, Brian DeWeese wrote:
<br><br>> Thanks for your reply. I was passing a QObject (a QDialog to be exact) as<br>> the parent to the delegate but I wasn't storing a reference to the delegate<br>> anywhere so perhaps it was being deleted in some cases. I added a variable
<br>> to store the reference to the delegate but unfortunately that didn't change<br>> anything.<br><br>I was just checking to see if you had missed that, but it was obvious from<br>the description of the problem that you hadn't made that mistake.
<br><br>> I pared down the code to it's bare minimum and included it here.<br>> Thanks for looking into the problem.<br><br>You're not going to like this, but, when I use the setItemDelegateForColumn()<br>method instead of setItemDelegate() for the whole model, the code works in
<br>the way you want, for me at least.<br><br>However, it doesn't work when the delegate is used for the whole model, so<br>it might also be interesting to find out why.<br><br>I'm using SIP 4.5.2, PyQt 4.1.1 and Qt
4.2.2.<br><br>David<br><br>_______________________________________________<br>PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">