The secret to enhancing Qt for Python applications
summary
Shows how to use Shiboken (PySide2) generator and clang to produce real Python extensions from C++ by creating three artifacts: a CMakeLists, a bindings header listing the C++ headers, and a typesystem XML. Demonstrates a Qt for Python app that loads a C++ data generator and linear fitter, compares C++ fit to SciPy fit (SciPy is better), reuses PySide2 type system files, handles std::vector ⇄ Python sequences, and excluded template qwt_series_store so qwt_plot_curve bindings build and run.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:04What is Shiboken
- 3:14Nomenclature clarification
- 4:16Installing Shiboken
- 6:44Generating bindings
- 8:54Simple graphics example
- 13:57CMakeLists changes
- 15:23Type system file
- 19:15Qwt bindings example
- 23:34Reusing PI situs work
- 24:59Conclusion and resources
- 26:24Q&A
related talks
01h 33mPython and C++: the best of both worlds
33mPythonizing Qt
58mIntroduction to Qt
29mC++ ♥ Python: from modules to hybrid applications
25mDeveloping cutting-edge applications with PyQt
36mIntroduction to C++ python extensions and embedding Python in C++ Apps
29mThe Art of Extending Python with other languages
58mIntroduction to Qt
