KDBindings API Documentation
1.0.95
|
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:
Navigate to the repository and create a folder named build
. Navigate into the folder. Use Shift
+Right Click
and select Open command window here
. In the terminal window, run:
After installation, KDBindings is available using CMake's 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 kdbindings
directory.
All parts of KDBindings are then accessible in the KDBindings namespace.
For the list of files that can be included, see the files page.
KDBindings uses plain C++17 to give you: