Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wrapping C++ Qt widget for using in Python with PySide

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.

like image 551
Mike Avatar asked Mar 12 '26 08:03

Mike


1 Answers

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/

like image 83
Mike Avatar answered Mar 14 '26 21:03

Mike



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!