このページでは

QMqttStringPair Class

QMqttStringPair クラスは、MQTT 5.0 規格の文字列ペアデータ型を表します。詳細...

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

パブリック関数

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

詳細な説明

このデータ型は、名前と値のペアを保持するために使用されます。

メンバ関数のドキュメント

QString QMqttStringPair::name() const

文字列ペアの名前を返します。

setName()も参照してください 。

void QMqttStringPair::setName(const QString &n)

名前を「n 」に設定します。

name()も参照してください 。

void QMqttStringPair::setValue(const QString &v)

値を `v` に設定します。

value()も参照してください 。

QString QMqttStringPair::value() const

文字列ペアの値を返します。

setValue()も参照してください 。

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

このインスタンスが `other` と一致しない場合、true を返します。

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

このインスタンスが `other` に一致する場合、true を返します。

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