在本页

QUntypedPropertyBinding Class

代表基于类型的属性绑定。更多

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

公共函数

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)

详细说明

另请参见 QUntypedBindable

成员函数文档

QUntypedPropertyBinding::QUntypedPropertyBinding()

构造一个空的 QUntypedPropertyBinding。

另请参阅 isNull().

QUntypedPropertyBinding::QUntypedPropertyBinding(const QUntypedPropertyBinding &other)

other 复制-构建 QUntypedPropertyBinding。

QUntypedPropertyBinding::QUntypedPropertyBinding(QUntypedPropertyBinding &&other)

Move-constructs a QUntypedPropertyBinding fromother.

other 的属性绑定处于空值状态。

另请参阅 isNull().

[noexcept] QUntypedPropertyBinding::~QUntypedPropertyBinding()

摧毁QUntypedPropertyBinding.

QPropertyBindingError QUntypedPropertyBinding::error() const

返回绑定的错误状态。

另请参见 QPropertyBindingError

bool QUntypedPropertyBinding::isNull() const

如果QUntypedPropertyBinding 为空,则返回true 。这只适用于默认构建和从移动实例。

另请参阅 isNull()。

QMetaType QUntypedPropertyBinding::valueMetaType() const

返回绑定的元类型。如果QUntypedPropertyBinding 为空,则返回无效的QMetaType

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

Move-assignsotherQUntypedPropertyBinding

other 处于空值状态。

另请参阅 isNull

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

other 复制到此QUntypedPropertyBinding

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.