|  | Home · Overviews · Examples |

# QUuid Class Reference
[com.trolltech.qt.core module]

The `QUuid` class stores a Universally Unique Identifier (UUID). More...

## Detailed Description

The `QUuid` class stores a Universally Unique Identifier (UUID).

For objects or declarations that must be uniquely identified, UUIDs (also known as GUIDs) are widely used in order to assign a fixed and easy to compare value to the object or declaration. The 128-bit value of a UUID is generated by an algorithm that guarantees that the value is unique.

In Qt, UUIDs are wrapped by the `QUuid` struct which provides convenience functions for handling UUIDs. Most platforms provide a tool to generate new UUIDs, for example, `uuidgen` and `guidgen`.

UUIDs generated by `QUuid`, are based on the `Random` version of the `DCE` (Distributed Computing Environment) standard.

UUIDs can be constructed from numeric values or from strings, or using the static `createUuid` function. They can be converted to a string with `toString`. UUIDs have a `variant` and a `version`, and null UUIDs return true from `isNull`.