QUntypedBindable Class▲
-
Header: QUntypedBindable
-
Since: Qt 6.0
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
-
qmake: QT += core
-
Inherited By: https://
-
Group: QUntypedBindable is part of tools
Detailed Description▲
https:// is a fully type-erased generic interface to wrap bindable properties. You can use it to interact with properties without knowing their type nor caring what kind of bindable property they are (e.g. https:// or https://). For most use cases, using https://<T> (which is generic over the property implementation but has a fixed type) should be preferred.
Member Function Documentation▲
[constexpr] QUntypedBindable::QUntypedBindable()▲
QUntypedBindable::QUntypedBindable(Property *property)▲
Constructs a https:// from the property property. If Property is const, the https:// will be read only. If property is null, the https:// will be invalid.
See Also▲
See also https://(), https://()
QUntypedPropertyBinding QUntypedBindable::binding() const▲
Returns the underlying property's binding if there is any, or a default constructed QUntypedPropertyBinding otherwise.
See Also▲
See also https://(), https://()
bool QUntypedBindable::hasBinding() const▲
Returns true if the underlying property has a binding.
[since 6.1] bool QUntypedBindable::isReadOnly() const▲
Returns true if the https:// is read-only.
This function was introduced in Qt 6.1.
bool QUntypedBindable::isValid() const▲
Returns true if the https:// is valid. Methods called on an invalid https:// generally have no effect, unless otherwise noted.
QUntypedPropertyBinding QUntypedBindable::makeBinding(const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION)▲
Creates a binding returning the underlying properties' value, using a specified source location.
QPropertyChangeHandler<Functor> QUntypedBindable::onValueChanged(Functor f)▲
Installs f as a change handler. Whenever the underlying property changes, f will be called, as long as the returned QPropertyChangeHandler and the property are kept alive.
See Also▲
See also https://, T>, QProperty::onValueChanged(), https://()
bool QUntypedBindable::setBinding(const QUntypedPropertyBinding &binding)▲
Sets the underlying property's binding to binding. This does not have any effect if the https:// is read-only, null or if binding's type does match the underlying property's type.
Returns true when the binding was successfully set.
See Also▲
See also https://(), QUntypedPropertyBinding::valueMetaType()
QPropertyChangeHandler<Functor> QUntypedBindable::subscribe(Functor f)▲
[since 6.1] QUntypedPropertyBinding QUntypedBindable::takeBinding()▲
Removes the currently set binding from the property and returns it. Returns a default-constructed QUntypedPropertyBinding if no binding is set.
This function was introduced in Qt 6.1.


