<br><br><div class="gmail_quote">On Nov 22, 2007 11:09 AM, Phil Thompson <<a href="mailto:phil@riverbankcomputing.co.uk">phil@riverbankcomputing.co.uk</a>> 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>> On Nov 21, 2007 5:26 PM, Alexandre Badez <<a href="mailto:alexandre.badez@gmail.com">alexandre.badez@gmail.com</a>> wrote:
<br>> > On Nov 21, 2007 5:06 PM, Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br>> > > [...]<br>> > > You can't, unless you copy the code, translate it to python and put it
<br>> > > into your own delegate. Only whats documented in the API docs can be<br>> > > used without copying it, everything else in Qt's code is private.<br>> > ><br>> > > Andreas<br>
> > ><br>> > > --<br>> > > Your mode of life will be changed for the better because of new<br>> > > developments.<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" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt
</a><br>> ><br>> > Thanks<br>> ><br>> > --<br>> > Alex<br>><br>> Hye,<br>><br>> I'm steel trying to make my deletage, but I've steel have some problem.<br>> My application must be multi-plateform, so I develop for win32 and Unix
<br>> (SunOs 5.8).<br>> On Windows I've got:<br>> PyQt 4.0 (262 144)<br>> Qt 4.1.5 (even if PyQt give me the information: Qt 4.1.3 (262 403)<br>><br>> On Unix I've got:<br>> PyQt 4.1.1 (262 401)
<br>> Qt 4.1.4 (262 404)<br>><br>> In my delegate I'm doing this:<br>><br>> from PyQt4 import QtGui<br>> class myDelegate(QtGui.QItemDelegate):<br>> def paint(self, painter, option, index):<br>
> [...]<br>> self.decoration(...) # <- method protected declare in C++ object<br>> [...]<br>><br>> This code work great on window, but not on Unix (AttributError).<br>><br>> 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 <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>