The QMqttMessageStatusProperties class represents additional information provided by the server during message delivery. 更多...
| 头: | #include <QMqttMessageStatusProperties> | 
| qmake: | QT += mqtt | 
| Since: | Qt 5.12 | 
该类在 Qt 5.12 引入。
| QString | reason () const | 
| QMqtt::ReasonCode | reasonCode () const | 
| QMqttUserProperties | userProperties () const | 
Depending on the QoS level of a message being sent by QMqttClient::publish (), a server reports the state of delivery. Additionally to the QMqtt::MessageStatus , complementary information might be included by the server. These are exposed to users via QMqttMessageStatusProperties.
注意: Message status properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion 了解更多信息。
Returns the reason string of a failed message delivery.
Returns the reason code of a failed message delivery.
Returns properties specified in conjunction with a message.