[PySide] PySide - Qt5 - Swig

Fabien Castan fabcastan at gmail.com
Sun Jan 13 13:09:14 CET 2013


> I am curious, what is the project you are working on that uses C++
> widgets, SWIG, and PySide?
>
It's an internal software, that mainly mixes a video editing and a 3D
software.
And like in maya, nuke,... users could customize the application in python
and creates their own widgets using PySide. The difficulty is that we need
to allows users to instanciate in python some C++ widgets and mix the 2
binding tools.

I personally like the idea of using SWIG to build Qt bindings. SWIG is the
> only tool I have ever used to interface C++ and Python, and it seemed fine.
> All of the alternatives to SWIG seemed worse.
> For those who don't know, PyQt uses SIP. SIP is similar to SWIG in many
> ways.

Compared to PyQt, our binding creates bigger binaries, but it may be better
with hand written rules... And we could discuss with SWIG guys on that
point.
I haven't played with it but some people of my team have used SIP a long
time ago and don't remember that as a good experience. But it may have
changed.
Anyway SIP is GPL or commercial... so this is not an option.

We used SWIG in the past few years, and it's really a pleasure. The project
continues to grow. I hope to see the automatic conversion from doxygen to
docstrings soon...
It may also interest other people to target other languages.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130113/a10a876c/attachment.html>


More information about the PySide mailing list