このページでは

QMqttUserProperties Class

QMqttUserProperties クラスは、サーバーに渡すことのできるQMqttStringPair 値のリストを表します。詳細...

ヘッダー: #include <QMqttUserProperties>
CMake: find_package(Qt6 REQUIRED COMPONENTS Mqtt)
target_link_libraries(mytarget PRIVATE Qt6::Mqtt)
qmake: QT += mqtt
継承元: QList

詳細な説明

ユーザープロパティを使用すると、クライアントは、メッセージのペイロードには含まれない追加データをサーバーや他のサブスクライバーに渡すことができます。

一方で、サーバー側にとっても、接続中のクライアントにさらなる情報を提供するための柔軟性を提供します。

サーバーは、提供されたユーザープロパティに加えて、追加のユーザープロパティを追加する場合があります。ただし、転送中に提供されたプロパティの順序が変更されることはありません。

注:ユーザー プロパティは MQTT 5.0 仕様の一部であり、QtMqtt を古いプロトコルレベルで使用している場合は使用できません。詳細については、QMqttClient::ProtocolVersion を参照してください。

関連項目: QMqttAuthenticationProperties 、QMqttConnectionProperties 、QMqttLastWillProperties 、QMqttPublishProperties 、QMqttSubscriptionProperties 、QMqttUnsubscriptionProperties 、およびQMqttSubscription 。

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