QPropertyData 类是用于具有自动特性绑定的特性的帮助程序类。 更多...
头: | #include <QPropertyData> |
CMake: |
find_package(Qt6 COMPONENTS Core REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Since: | Qt 6.0 |
继承: | QUntypedPropertyData |
继承者: | QObjectBindableProperty and QProperty |
void | setValueBypassingBindings (QPropertyData::parameter_type v ) |
void | setValueBypassingBindings (QPropertyData::rvalue_ref v ) |
QPropertyData::parameter_type | valueBypassingBindings () const |
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 QObjectBindableProperty <T>, not use the low level mechanisms provided in this class.
Sets the data value stored in this property to v .
注意: Using this method will bypass any potential binding registered for this property.
另请参阅 valueBypassingBindings ().
这是重载函数。
Sets the data value stored in this property to v .
注意: Using this method will bypass any potential binding registered for this property.
Returns the data stored in this property.
注意: As this will bypass any binding evaluation it might return an outdated value if a binding is set on this property. Using this method will also not register the property access with any currently executing binding.
另请参阅 setValueBypassingBindings ().