QMqttStringPair Class
The QMqttStringPair class represents the string pair data type of the MQTT 5.0 standard. More...
Header: |
#include <QMqttStringPair> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Mqtt)
target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
qmake: |
QT += mqtt |
Since: |
Qt 5.12 |
Public Functions
Detailed Description
This data type is used to hold a name-value pair.
Member Function Documentation
QString QMqttStringPair::name() const
Returns the name of the string pair.
See also setName().
void QMqttStringPair::setName(const QString &n)
Sets the name to n.
See also name().
void QMqttStringPair::setValue(const QString &v)
Sets the value to v.
See also value().
QString QMqttStringPair::value() const
Returns the value of the string pair.
See also setValue().
bool QMqttStringPair::operator!=(const QMqttStringPair &other) const
Returns true
if this instance does not match other.
bool QMqttStringPair::operator==(const QMqttStringPair &other) const
Returns true
if this instance matches other.