1

I have a software component (Qt/C++ GUI-less library) that performs some data-intensive manipulation.

What is the best way to expose it's functionality as a Python native extension? Wrapping it by hand in Boost::Python? Anything QObject/QMetaObject based instead? Perhaps reusing QScript wrappers?

Note - I know this question borders on the soft-rec, but I presume there might be a canonical way to do it that I know nothing about, and I hope this question would not devolve into a personal preference comment storm

qdot
  • 6,195
  • 5
  • 44
  • 95
  • 1
    Did you try to use PyQt? http://www.riverbankcomputing.co.uk/software/pyqt/intro – Tanuki Aug 13 '14 at 16:54
  • I assume it's just a way to use Qt's GUI libraries directly from python. Do they have something for packaging custom C++ code (heavily using Q_PROPERTIES and Qt-specific containers)? – qdot Aug 13 '14 at 16:56
  • I did not use it heavily but as I understand you can mix C++ and Python using PyQt. – Tanuki Aug 13 '14 at 17:11
  • PyQt uses something called SIP for wrappers - and even the simple qpoint.sip is absolutely hideous :( – qdot Aug 13 '14 at 17:23
  • They have a lot of samples. Anyway you can also try to play with swig? but it is not so reliable since Qt uses Moc. – Tanuki Aug 13 '14 at 19:12

0 Answers0