本页内容

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)

从other 创建一个QUntypedPropertyBinding。

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)

将other 赋值给此QUntypedPropertyBinding 。

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.