3

What is the best approach for wrapping a custom C++ library with custom Qt display widgets in Python for using in a PySide based QApplication? Does the C++ library need special treatment for wrapping with SWIG? Will wrapped Qt widgets integrate properly with PySide?

I would appreciate any comments on the appropriate nomenclature needed to refine my unsuccessful searches on this subject.

3
  • Are you writing/controlling the C++ code? Commented Nov 21, 2014 at 4:51
  • 1
    Yes, it is an in-house C++ project with a Qt interface. I want to reimplement the main application in Python but use the existing custom C++ Qt widgets and classes as is. Commented Nov 21, 2014 at 5:33
  • 1
    Maybe this will be of help stackoverflow.com/questions/2940686/… Commented Nov 21, 2014 at 6:12

1 Answer 1

2

The Shiboken bindings tool used to generate the PySide bindings for Qt turns out to be the right tool for the job.

The basic procedure for generating the bindings for a custom C++ library is outlined here: http://lynxline.com/superhybrids-part-2-now-qt-pyside/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.