QMqttUnsubscriptionProperties Class | Qt MQTT 6.4.1

- Qt 6.4
- Qt MQTT
- C++ Classes
- QMqttUnsubscriptionProperties
- Qt 6.4.1 Reference Documentation

# QMqttUnsubscriptionProperties Class

The QMqttUnsubscriptionProperties class represents configuration options a QMqttClient can pass to the server when unsubscribing from a topic filter. More...

Header: | #include <QMqttUnsubscriptionProperties>
CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt) target_link_libraries(mytarget PRIVATE Qt6::Mqtt)
qmake: | QT += mqtt
Since: | Qt 5.12

- List of all members, including inherited members

## Public Functions

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

## Detailed Description

Note: Unsubscription properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion for more information.

## Member Function Documentation

### void QMqttUnsubscriptionProperties::setUserProperties(const QMqttUserProperties &user)

Sets the user properties to user.

See also userProperties().

### QMqttUserProperties QMqttUnsubscriptionProperties::userProperties() const

Returns the user specified properties.

See also setUserProperties().