The QMqttStringPair class represents the string pair data type of the MQTT 5.0 standard. 更多...
| 头: | #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 |
This data type is used to hold a name-value pair.
Returns the name of the string pair.
另请参阅 setName ().
Sets the name to n .
另请参阅 name ().
Sets the value to v .
另请参阅 value ().
Returns the value of the string pair.
另请参阅 setValue ().
返回
true
if this instance does not match
other
.
返回
true
if this instance matches
other
.