class Tag

Added in version 6.7.

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

__init__()

Default constructor, producing an invalid tag.

isValid()
Return type:

bool

Returns whether the tag is valid. A tag is valid if its value is not zero.

See also

value() fromValue() fromString()

__ne__(rhs)
Parameters:

rhsTag

Return type:

bool

__lt__(rhs)
Parameters:

rhsTag

Return type:

bool

__le__(rhs)
Parameters:

rhsTag

Return type:

bool

__eq__(rhs)
Parameters:

rhsTag

Return type:

bool

__gt__(rhs)
Parameters:

rhsTag

Return type:

bool

__ge__(rhs)
Parameters:

rhsTag

Return type:

bool

toString()
Return type:

QByteArray

Returns the string representation of this tag as a byte array.

See also

fromString()

value()
Return type:

int

Returns the numerical value of this tag.

See also

isValid() fromValue()