<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial size=2>I am creating a
custom QAbstractItemDelegate. It mostly acts as a proxy for standard QTreeWidget
delegate. I cannot call the editorEvent() method on the original delegate
because of this.</FONT></SPAN></DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial size=2>
return self.__real.editorEvent(event, model, option, index)</FONT></SPAN></DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial size=2>RuntimeError: no
access to protected functions or signals for objects not created from
Python</FONT></SPAN></DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial size=2>The documentation
states the editorEvent is a public method, so I'm surprised to see this. Without
calling the correct delegate the checkbox clicking action for QTreeWidgetItems
is not processed.</FONT></SPAN></DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=703515717-21122007><FONT face=Arial size=2>Or better than all
this; is there an easier way to override the cell painting of a
QTreeWidgetItem?</FONT></SPAN></DIV>
<DIV><SPAN class=703515717-21122007></SPAN> </DIV></DIV></BODY></HTML>