class QMqttStringPair

The QMqttStringPair class represents the string pair data type of the MQTT 5.0 standard. More

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

This data type is used to hold a name-value pair.

__init__()
__init__(arg__1)
Parameters:

arg__1QMqttStringPair

__init__(name, value)
Parameters:
  • name – str

  • value – str

name()
Return type:

str

Returns the name of the string pair.

See also

setName()

__ne__(other)
Parameters:

otherQMqttStringPair

Return type:

bool

Returns true if this instance does not match other.

__eq__(other)
Parameters:

otherQMqttStringPair

Return type:

bool

Returns true if this instance matches other.

setName(n)
Parameters:

n – str

Sets the name to n.

See also

name()

setValue(v)
Parameters:

v – str

Sets the value to v.

See also

value()

value()
Return type:

str

Returns the value of the string pair.

See also

setValue()