本页内容

QNdefNfcUriRecord Class

QNdefNfcUriRecord 类提供了一个 NFC RTD-URI。更多内容...

头文件: #include <QNdefNfcUriRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Nfc)
target_link_libraries(mytarget PRIVATE Qt6::Nfc)
qmake: QT += nfc
继承自: QNdefRecord

公共函数

QNdefNfcUriRecord()
QNdefNfcUriRecord(const QNdefRecord &other)
void setUri(const QUrl &uri)
QUrl uri() const

详细说明

RTD-URI 封装了一个 URI。

成员函数文档

QNdefNfcUriRecord::QNdefNfcUriRecord()

构建一个空的 NFC URI 记录。

QNdefNfcUriRecord::QNdefNfcUriRecord(const QNdefRecord &other)

创建一个新的 NFC URI 记录,该记录是other 的副本。

void QNdefNfcUriRecord::setUri(const QUrl &uri)

将此 URI 记录的 URI 设置为uri 。

另请参阅 uri()。

QUrl QNdefNfcUriRecord::uri() const

返回此 URI 记录的 URI。

警告: 建议应用程序 开发人员在根据返回的 URI 采取行动之前对其进行验证。请参阅Qt NFC 中的“安全注意事项”以获取指导。

另请参阅 setUri()。

© 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.