The QMqttUnsubscriptionProperties class represents configuration options a QMqttClient can pass to the server when unsubscribing from a topic filter. 更多...
头: | #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 |
注意: Unsubscription properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion 了解更多信息。
Sets the user properties to user .
另请参阅 userProperties ().
Returns the user specified properties.
另请参阅 setUserProperties ().