QVariant is a data type used in Qt for storing different types of data. Its toHash() function returns a hash value for the variant data based on the data type.
Example 1: Using toHash() to create a hash value for an integer.
This example creates an array of strings variant and uses its hash value as the key to insert into a QHash.
The package library for QVariant is QtCore.
C++ (Cpp) QVariant::toHash - 30 examples found. These are the top rated real world C++ (Cpp) examples of QVariant::toHash extracted from open source projects. You can rate examples to help us improve the quality of examples.