KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
06-lazy-property-bindings/main.cpp

An example of how to use KDBindings::BindingEvaluator together with a KDBindings::Property to create a Property binding that is only reevaluated on demand.

The output of this example is:

The initial size of the image = 1920000 bytes
The new size of the image = 8294400 bytes

Note the difference to 05-property-bindings/main.cpp, where the new size of the image is calculated twice.

This feature is especially useful to reduce the performance impact of bindings and to create bindings that only update in specific intervals.


© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8