问题
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.
回答1:
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/
来源:https://stackoverflow.com/questions/27047323/wrapping-c-qt-widget-for-using-in-python-with-pyside