On Nov 21, 2007 5:26 PM, Alexandre Badez <<a href="mailto:alexandre.badez@gmail.com">alexandre.badez@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Nov 21, 2007 5:06 PM, Andreas Pakulat <<a href="mailto:apaku@gmx.de" target="_blank">apaku@gmx.de</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>[...]<br></div><div class="Ih2E3d">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><font color="#888888"><br>--<br>Your mode of life will be changed for the better because of new developments.<br>_______________________________________________<br>PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">
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></font></div></blockquote></div><br>Thanks
<br><br>
-- <br>Alex<br><br>
</blockquote></div><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 (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>-- <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>