このページでは

QMqttUnsubscriptionProperties Class

QMqttUnsubscriptionProperties クラスは、QMqttClient がトピックフィルタの購読を解除する際にサーバーに渡すことのできる設定オプションを表します。詳細...

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

パブリック関数

void setUserProperties(const QMqttUserProperties &user)
QMqttUserProperties userProperties() const

詳細な説明

注: 購読解除 プロパティは MQTT 5.0 仕様の一部であり、それより低いプロトコルレベルで接続する場合は使用できません。詳細については、QMqttClient::ProtocolVersion を参照してください。

メンバ関数のドキュメント

void QMqttUnsubscriptionProperties::setUserProperties(const QMqttUserProperties &user)

ユーザープロパティを「user 」に設定します。

userProperties()も参照してください 。

QMqttUserProperties QMqttUnsubscriptionProperties::userProperties() const

ユーザーが指定したプロパティを返します。

setUserProperties()も参照してください 。

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