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 을 반환합니다.

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