QUntypedPropertyBinding Class

Represents a type-erased property binding. More...

Header: #include <QUntypedPropertyBinding>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Since: Qt 6.0

Public Functions

QUntypedPropertyBinding()
QUntypedPropertyBinding(const QUntypedPropertyBinding &other)
QUntypedPropertyBinding(QUntypedPropertyBinding &&other)
~QUntypedPropertyBinding()
QPropertyBindingError error() const
bool isNull() const
QMetaType valueMetaType() const
QUntypedPropertyBinding &operator=(QUntypedPropertyBinding &&other)
QUntypedPropertyBinding &operator=(const QUntypedPropertyBinding &other)

Detailed Description

See also QUntypedBindable.

Member Function Documentation

QUntypedPropertyBinding::QUntypedPropertyBinding()

Constructs a null QUntypedPropertyBinding.

See also isNull().

QUntypedPropertyBinding::QUntypedPropertyBinding(const QUntypedPropertyBinding &other)

Copy-constructs a QUntypedPropertyBinding from other.

QUntypedPropertyBinding::QUntypedPropertyBinding(QUntypedPropertyBinding &&other)

Move-constructs a QUntypedPropertyBinding from other.

other is left in a null state.

See also isNull().

[noexcept] QUntypedPropertyBinding::~QUntypedPropertyBinding()

Destroys the QUntypedPropertyBinding.

QPropertyBindingError QUntypedPropertyBinding::error() const

Returns the error state of the binding.

See also QPropertyBindingError.

bool QUntypedPropertyBinding::isNull() const

Returns true if the QUntypedPropertyBinding is null. This is only true for default-constructed and moved-from instances.

See also isNull().

QMetaType QUntypedPropertyBinding::valueMetaType() const

Returns the meta-type of the binding. If the QUntypedPropertyBinding is null, an invalid QMetaType is returned.

QUntypedPropertyBinding &QUntypedPropertyBinding::operator=(QUntypedPropertyBinding &&other)

Move-assigns other to this QUntypedPropertyBinding.

other is left in a null state.

See also isNull.

QUntypedPropertyBinding &QUntypedPropertyBinding::operator=(const QUntypedPropertyBinding &other)

Copy-assigns other to this QUntypedPropertyBinding.