On 16.08.06 15:14:18, Tobias Rundström wrote: > What is the best practice of wrapping a custom QAbstractItemModel into PyQt? > I > developed a ItemModel that I want to use in a C++ program aswell as in my > Python program, the best way seems to be to write it in C++ and then wrap it > into PyQt, this allows sharing the model code. What is the best way of doing > this?
I think you're looking for sip and it's documentation. That's what is used to build PyQt and thus it shouldn't be too hard to use for a code model. I'm not sure but you might need to put the model into a shared library. Andreas -- Courage is your greatest present need. _______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
