KDBindings is a header-only library, so you could just add the
/src/kdbindings/ directory to your projects include path or copy it into your project and start using KDBindings.
However, we recommend using CMake to install KDBindings so it's available to any CMake project on your computer.
For this, first clone the project and install it:
1 2 3 4
Navigate to the repository and create a folder named
Navigate into the folder.
Right Click and select
Open command window here.
In the terminal window, run:
Linking using CMake¶
After installation, KDBindings is available using CMakes find_package directive. This directive then exposes a KDAB::KDBindings library that can be linked against.
Example CMake code:
Also make sure C++17 or later is enabled in your project:
Once the library is correctly added to your project, the different features of KDBindings are available for include under the
All parts of KDBindings are then accessible in the KDBindings namespace.
1 2 3 4 5 6 7 8 9
For the list of files that can be included, see the files page.
KDBindings uses plain C++17 to give you: