Skip to content

PythonQt.QtCore.QUuid · declarations 001

Back to PythonQt.QtCore.QUuid

DCE instance-attribute

DCE: Any

EmbeddedPOSIX instance-attribute

EmbeddedPOSIX: Any

Microsoft instance-attribute

Microsoft: Any

NCS instance-attribute

NCS: Any

Random instance-attribute

Random: Any

Reserved instance-attribute

Reserved: Any

VarUnknown instance-attribute

VarUnknown: Any

Variant instance-attribute

Variant: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

VerUnknown instance-attribute

VerUnknown: Any

createUuid

createUuid() -> Any

X.createUuid() -> PythonQt.QtCore.QUuid

Supplemental documentation: Qt 5 reference:

[static] QUuid QUuid::createUuid()

On any platform other than Windows, this function returns a new UUID with variant QUuid::DCE and version QUuid::Random. On Windows, a GUID is generated using the Windows API and will be of the type that the API decides to create.

See also variant() and version().

Upstream PySide2 reference signatures (binding differences may apply):

createUuid() -> PySide2.QtCore.QUuid

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#createUuid

createUuidV3

createUuidV3(ns: Any, baseData: Any) -> Any

X.createUuidV3(ns, baseData) -> PythonQt.QtCore.QUuid

Supplemental documentation: Qt 5 reference:

[static] QUuid QUuid::createUuidV3(const QUuid \&ns, const QByteArray \&baseData)

This function returns a new UUID with variant QUuid::DCE and version QUuid::Md5. ns is the namespace and baseData is the basic data as described by RFC 4122.

This function was introduced in Qt 5.0.

See also variant(), version(), and createUuidV5().

[static] QUuid QUuid::createUuidV3(const QUuid \&ns, const QString \&baseData)

This function returns a new UUID with variant QUuid::DCE and version QUuid::Md5. ns is the namespace and baseData is the basic data as described by RFC 4122.

This function was introduced in Qt 5.0.

See also variant(), version(), and createUuidV5().

Upstream PySide2 reference signatures (binding differences may apply):

createUuidV3(ns: PySide2.QtCore.QUuid, baseData: PySide2.QtCore.QByteArray) -> PySide2.QtCore.QUuid
createUuidV3(ns: PySide2.QtCore.QUuid, baseData: str) -> PySide2.QtCore.QUuid

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#createUuidV3

createUuidV5

createUuidV5(ns: Any, baseData: Any) -> Any

X.createUuidV5(ns, baseData) -> PythonQt.QtCore.QUuid

Supplemental documentation: Qt 5 reference:

[static] QUuid QUuid::createUuidV5(const QUuid \&ns, const QByteArray \&baseData)

This function returns a new UUID with variant QUuid::DCE and version QUuid::Sha1. ns is the namespace and baseData is the basic data as described by RFC 4122.

This function was introduced in Qt 5.0.

See also variant(), version(), and createUuidV3().

[static] QUuid QUuid::createUuidV5(const QUuid \&ns, const QString \&baseData)

This function returns a new UUID with variant QUuid::DCE and version QUuid::Sha1. ns is the namespace and baseData is the basic data as described by RFC 4122.

This function was introduced in Qt 5.0.

See also variant(), version(), and createUuidV3().

Upstream PySide2 reference signatures (binding differences may apply):

createUuidV5(ns: PySide2.QtCore.QUuid, baseData: PySide2.QtCore.QByteArray) -> PySide2.QtCore.QUuid
createUuidV5(ns: PySide2.QtCore.QUuid, baseData: str) -> PySide2.QtCore.QUuid

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#createUuidV5

data1 instance-attribute

data1: Any

data2 instance-attribute

data2: Any

data3 instance-attribute

data3: Any

fromRfc4122

fromRfc4122(arg__1: Any) -> Any

X.fromRfc4122(arg__1) -> PythonQt.QtCore.QUuid

Supplemental documentation: Qt 5 reference:

[static] QUuid QUuid::fromRfc4122(const QByteArray \&bytes)

Creates a QUuid object from the binary representation of the UUID, as specified by RFC 4122 section 4.1.2. See toRfc4122() for a further explanation of the order of bytes required.

The byte array accepted is NOT a human readable format.

If the conversion fails, a null UUID is created.

This function was introduced in Qt 4.8.

See also toRfc4122() and QUuid().

Upstream PySide2 reference signatures (binding differences may apply):

fromRfc4122(arg__1: PySide2.QtCore.QByteArray) -> PySide2.QtCore.QUuid

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#fromRfc4122

isNull

isNull() -> bool

X.isNull() -> bool

Supplemental documentation: Qt 5 reference:

bool QUuid::isNull() const

Returns true if this is the null UUID {00000000-0000-0000-0000-000000000000}; otherwise returns false.

Upstream PySide2 reference signatures (binding differences may apply):

isNull(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#isNull

toByteArray

toByteArray() -> Any

X.toByteArray() -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

QByteArray QUuid::toByteArray() const

Returns the binary representation of this QUuid. The byte array is formatted as five hex fields separated by '-' and enclosed in curly braces, i.e., "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where 'x' is a hex digit. From left to right, the five hex fields are obtained from the four public data members in QUuid as follows:

Field # Source
1 data1
2 data2
3 data3
4 data4[0] .. data4[1]
5 data4[2] .. data4[7]

This function was introduced in Qt 4.8.

QByteArray QUuid::toByteArray(QUuid::StringFormat mode) const

Returns the string representation of this QUuid, with the formattiong controlled by the mode parameter. From left to right, the five hex fields are obtained from the four public data members in QUuid as follows:

Field # Source
1 data1
2 data2
3 data3
4 data4[0] .. data4[1]
5 data4[2] .. data4[7]

This function was introduced in Qt 5.11.

Upstream PySide2 reference signatures (binding differences may apply):

toByteArray(self) -> PySide2.QtCore.QByteArray
toByteArray(self, mode: PySide2.QtCore.QUuid.StringFormat) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#toByteArray

toRfc4122

toRfc4122() -> Any

X.toRfc4122() -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

QByteArray QUuid::toRfc4122() const

Returns the binary representation of this QUuid. The byte array is in big endian format, and formatted according to RFC 4122, section 4.1.2 - "Layout and byte order".

The order is as follows:

Field # Source
1 data1
2 data2
3 data3
4 data4[0] .. data4[7]

This function was introduced in Qt 4.8.

Upstream PySide2 reference signatures (binding differences may apply):

toRfc4122(self) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#toRfc4122

toString

toString() -> str

X.toString() -> str

Supplemental documentation: Qt 5 reference:

QString QUuid::toString() const

Returns the string representation of this QUuid. The string is formatted as five hex fields separated by '-' and enclosed in curly braces, i.e., "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where 'x' is a hex digit. From left to right, the five hex fields are obtained from the four public data members in QUuid as follows:

Field # Source
1 data1
2 data2
3 data3
4 data4[0] .. data4[1]
5 data4[2] .. data4[7]

QString QUuid::toString(QUuid::StringFormat mode) const

Returns the string representation of this QUuid, with the formattiong controlled by the mode parameter. From left to right, the five hex fields are obtained from the four public data members in QUuid as follows:

Field # Source
1 data1
2 data2
3 data3
4 data4[0] .. data4[1]
5 data4[2] .. data4[7]

This function was introduced in Qt 5.11.

Upstream PySide2 reference signatures (binding differences may apply):

toString(self) -> str
toString(self, mode: PySide2.QtCore.QUuid.StringFormat) -> str

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#toString

variant

variant() -> Any

X.variant()

Supplemental documentation: Qt 5 reference:

QUuid::Variant QUuid::variant() const

Returns the value in the variant field of the UUID. If the return value is QUuid::DCE, call version() to see which layout it uses. The null UUID is considered to be of an unknown variant.

See also version().

Upstream PySide2 reference signatures (binding differences may apply):

variant(self) -> PySide2.QtCore.QUuid.Variant

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#variant

version

version() -> Any

X.version()

Supplemental documentation: Qt 5 reference:

QUuid::Version QUuid::version() const

Returns the version field of the UUID, if the UUID's variant field is QUuid::DCE. Otherwise it returns QUuid::VerUnknown.

See also variant().

Upstream PySide2 reference signatures (binding differences may apply):

version(self) -> PySide2.QtCore.QUuid.Version

Source: https://doc.qt.io/archives/qt-5.15/quuid.html#version