이 페이지에서

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.