In questa pagina

QMqttStringPair Class

La classe QMqttStringPair rappresenta il tipo di dati "coppia di stringhe" dello standard MQTT 5.0. Per saperne di più...

Intestazione: #include <QMqttStringPair>
CMake: find_package(Qt6 REQUIRED COMPONENTS Mqtt)
target_link_libraries(mytarget PRIVATE Qt6::Mqtt)
qmake: QT += mqtt

Funzioni pubbliche

QString name() const
void setName(const QString &n)
void setValue(const QString &v)
QString value() const
bool operator!=(const QMqttStringPair &other) const
bool operator==(const QMqttStringPair &other) const

Descrizione dettagliata

Questo tipo di dati viene utilizzato per contenere una coppia nome-valore.

Documentazione delle funzioni membro

QString QMqttStringPair::name() const

Restituisce il nome della coppia di stringhe.

Vedi anche setName().

void QMqttStringPair::setName(const QString &n)

Imposta il nome su n.

Vedi anche name().

void QMqttStringPair::setValue(const QString &v)

Imposta il valore su v.

Vedi anche value().

QString QMqttStringPair::value() const

Restituisce il valore della coppia di stringhe.

Vedi anche setValue().

bool QMqttStringPair::operator!=(const QMqttStringPair &other) const

Restituisce ` true ` se questa istanza non corrisponde a ` other`.

bool QMqttStringPair::operator==(const QMqttStringPair &other) const

Restituisce ` true ` se questa istanza corrisponde a ` other`.

© 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.