<br><br><div class="gmail_quote">On Nov 22, 2007 11:09 AM, Phil Thompson &lt;<a href="mailto:phil@riverbankcomputing.co.uk">phil@riverbankcomputing.co.uk</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Thursday 22 November 2007, Alexandre Badez wrote:<br>&gt; On Nov 21, 2007 5:26 PM, Alexandre Badez &lt;<a href="mailto:alexandre.badez@gmail.com">alexandre.badez@gmail.com</a>&gt; wrote:
<br>&gt; &gt; On Nov 21, 2007 5:06 PM, Andreas Pakulat &lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt; wrote:<br>&gt; &gt; &gt; [...]<br>&gt; &gt; &gt; You can&#39;t, unless you copy the code, translate it to python and put it
<br>&gt; &gt; &gt; into your own delegate. Only whats documented in the API &nbsp;docs can be<br>&gt; &gt; &gt; used without copying it, everything else in Qt&#39;s code is private.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Andreas<br>
&gt; &gt; &gt;<br>&gt; &gt; &gt; --<br>&gt; &gt; &gt; Your mode of life will be changed for the better because of new<br>&gt; &gt; &gt; developments.<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; PyQt mailing list &nbsp; &nbsp; 
<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>&gt; &gt; &gt; <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt
</a><br>&gt; &gt;<br>&gt; &gt; Thanks<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Alex<br>&gt;<br>&gt; Hye,<br>&gt;<br>&gt; I&#39;m steel trying to make my deletage, but I&#39;ve steel have some problem.<br>&gt; My application must be multi-plateform, so I develop for win32 and Unix
<br>&gt; (SunOs 5.8).<br>&gt; On Windows I&#39;ve got:<br>&gt; &nbsp; PyQt 4.0 (262 144)<br>&gt; &nbsp; Qt 4.1.5 (even if PyQt give me the information: Qt 4.1.3 (262 403)<br>&gt;<br>&gt; On Unix I&#39;ve got:<br>&gt; &nbsp; PyQt 4.1.1 (262 401)
<br>&gt; &nbsp; Qt 4.1.4 (262 404)<br>&gt;<br>&gt; In my delegate I&#39;m doing this:<br>&gt;<br>&gt; from PyQt4 import QtGui<br>&gt; class myDelegate(QtGui.QItemDelegate):<br>&gt; &nbsp; &nbsp; def paint(self, painter, option, index):<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; [...]<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; self.decoration(...) # &lt;- method protected declare in C++ object<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; [...]<br>&gt;<br>&gt; This code work great on window, but not on Unix (AttributError).<br>&gt;<br>&gt; What am I doing wrong ?
<br><br></div></div>QItemDelegate::decoration() is internal to Qt.<br><font color="#888888"><br>Phil<br></font><div><div></div><div class="Wj3C7c">_______________________________________________<br>PyQt mailing list &nbsp; &nbsp;<a href="mailto:PyQt@riverbankcomputing.com">
PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></div></div></blockquote></div><br>But why does it work in Win32 and not on Unix ?
<br><br>Those method, even if they are not documented, are protected, so I can normally do it in C++; so why not in python ?<br clear="all"><br>-- <br>Alex<br><a href="http://alexandre.badez.googlepages.com/">http://alexandre.badez.googlepages.com/
</a><br><a href="mailto:alexandre.badez@gmail.com">alexandre.badez@gmail.com</a>