[PyQt] Template class with private assignment operator

2011-03-31 Thread Lorenzo Masini
Hi everyone I have a %MappedType which has the operator= private. Sip generates assing_* code that uses the assignment operator, so the generated cpp doesn't compile. Is there a way to define the assign_* method in order to not use the assignment operator and raise a python exception instead?

Re: [PyQt] SIP Problem dynamic loading in wrapped library

2011-03-31 Thread Jens Thoms Toerring
Hi, yesterday I wrote about a problem with a SIP wrapped shared library (written in C++) I have that in turn dynamically loads further shared libraries - which fails due to undefined symbols, but which definitely are defined in the wrapped library. All this is currently tested under Linux, so

Re: [PyQt] SIP PyQT compilation issue

2011-03-31 Thread emmanuel_mayssat
On 09:20 Thu 31 Mar , Phil Thompson wrote: You can lie to SIP as much as you want. For example if B is derived from A in C++ you can tell SIP that it doesn't derive from anything and you won't get access to any of A's methods from Python. You could even say that B contained some of A's

[PyQt] QTreeWidget/View: reimplementing drawTree()

2011-03-31 Thread James Polk
I need to change/assign a unique color to the tree and branches of a QTreeWidget. It appears I need to reimplement the drawTree() function.  While I've implemented a treeview delegate before, this is unique enough (at least to me) to have me a but stumped on syntax.  I've searched high and low