QMqttStringPair#

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

Inheritance diagram of PySide6.QtMqtt.QMqttStringPair

Synopsis#

Functions#

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.

class PySide6.QtMqtt.QMqttStringPair#

PySide6.QtMqtt.QMqttStringPair(arg__1)

PySide6.QtMqtt.QMqttStringPair(name, value)

Parameters:
PySide6.QtMqtt.QMqttStringPair.name()#
Return type:

str

Returns the name of the string pair.

See also

setName()

PySide6.QtMqtt.QMqttStringPair.__ne__(other)#
Parameters:

otherPySide6.QtMqtt.QMqttStringPair

Return type:

bool

Returns true if this instance does not match other.

PySide6.QtMqtt.QMqttStringPair.__eq__(other)#
Parameters:

otherPySide6.QtMqtt.QMqttStringPair

Return type:

bool

Returns true if this instance matches other.

PySide6.QtMqtt.QMqttStringPair.setName(n)#
Parameters:

n – str

Sets the name to n.

See also

name()

PySide6.QtMqtt.QMqttStringPair.setValue(v)#
Parameters:

v – str

Sets the value to v.

See also

value()

PySide6.QtMqtt.QMqttStringPair.value()#
Return type:

str

Returns the value of the string pair.

See also

setValue()