QPropertyData Class
template <typename T> class QPropertyDataThe QPropertyData class is a helper class for properties with automatic property bindings. More...
Header: | #include <QPropertyData> |
CMake: | find_package(Qt6 COMPONENT Core) target_link_libraries(mytarget PUBLIC Qt::Core) |
qmake: | QT += core |
Since: | Qt 6.0 |
Inherits: | QUntypedPropertyData |
Inherited By: |
Detailed Description
QPropertyData<T> is a common base class for classes that can hold properties with automatic data bindings. It mainly wraps the stored data, and offers low level access to that data.
The low level access to the data provided by this class bypasses the binding mechanism, and should be used with care, as updates to the values will not get propagated to any bindings that depend on this property.
You should usually call value() and setValue() on QProperty<T> or QBindablePropertyData<T>, not use the low level mechanisms provided in this class.