Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
PySide Binding Generation Tutorial: Module 1 Creating the foo library
English French [qt-devnet.developpez.com]
- Note: this article is a member of the multipart PySide Binding Generation Tutorial [developer.qt.nokia.com]
Creating the foo library
This section presents the code and the build instructions for a very simple Qt-based library. The library will be used as the subject for this tutorial.
The Source Code
There is only one class in this foo library plus a
.pro
file which means that the build system used will be qmake based.
Save the files below in a directory called libfoo. Be aware that this directory will be referenced by the binding Makefile presented in a later section of this tutorial. If you want to use other names or paths, remember to change the binding Makefile accordingly. Blind copy’n’paste shortens your life.
libfoo/foo.h
libfoo/foo.cpp
libfoo/foo.pro
To build the lib: