I have a very complex custom widget derived from QWidget
in PySide.
At first its paintEvent
was taking more than 1 second to complete. Then I've implemented a lot of caching with QPixmap
to each layer of the "image" that I'm drawing. Now my paintEvent
finishes in about 90ms - which is really fine, but not enough.
I'm wondering if I can implement this custom widget in plain C or C++, and then use it as an abstract widget in PySide (like PySide does with all other available widgets).
I found here that in PyQt I could use sip
for this. But I can't find a match for this in PySide.
Does any one know how to do that?