Class: QgsVariantUtils

class qgis.core.QgsVariantUtils

Bases: sip.wrapper

Contains utility functions for working with QVariants and QVariant types.

New in version 3.24:

Methods

typeToDisplayString

Returns a user-friendly translated string representing a QVariant type.

typeToDisplayString(type: QVariant.Type, subType: QVariant.Type = QVariant.Type.Invalid) str

Returns a user-friendly translated string representing a QVariant type.

The optional subType can be used to specify the type of variant list or map values.

Parameters
  • type (QVariant.Type) –

  • subType (QVariant.Type = QVariant.Type.Invalid) –

Return type

str