23 case QVariant::Invalid:
26 return QObject::tr(
"Boolean" );
28 return QObject::tr(
"Integer (32 bit)" );
30 return QObject::tr(
"Integer (unsigned 32 bit)" );
31 case QVariant::LongLong:
32 return QObject::tr(
"Integer (64 bit)" );
33 case QVariant::ULongLong:
34 return QObject::tr(
"Integer (unsigned 64 bit)" );
35 case QVariant::Double:
36 return QObject::tr(
"Decimal (double)" );
38 return QObject::tr(
"Character" );
40 return QObject::tr(
"Map" );
46 return QObject::tr(
"Integer List" );
47 case QVariant::LongLong:
48 return QObject::tr(
"Integer (64 bit) List" );
49 case QVariant::Double:
50 return QObject::tr(
"Decimal (double) List" );
52 return QObject::tr(
"List" );
55 case QVariant::String:
56 return QObject::tr(
"Text (string)" );
57 case QVariant::StringList:
58 return QObject::tr(
"String List" );
59 case QVariant::ByteArray:
60 return QObject::tr(
"Binary Object (BLOB)" );
61 case QVariant::BitArray:
62 return QObject::tr(
"Bit Array" );
64 return QObject::tr(
"Date" );
66 return QObject::tr(
"Time" );
67 case QVariant::DateTime:
68 return QObject::tr(
"Date & Time" );
70 return QObject::tr(
"URL" );
71 case QVariant::Locale:
72 return QObject::tr(
"Locale" );
75 return QObject::tr(
"Rectangle" );
78 return QObject::tr(
"Size" );
81 return QObject::tr(
"Line" );
83 case QVariant::PointF:
84 return QObject::tr(
"Point" );
85 case QVariant::RegularExpression:
86 return QObject::tr(
"Regular Expression" );
88 return QObject::tr(
"Hash" );
89 case QVariant::EasingCurve:
90 return QObject::tr(
"Easing Curve" );
92 return QObject::tr(
"UUID" );
93 case QVariant::ModelIndex:
94 case QVariant::PersistentModelIndex:
95 return QObject::tr(
"Model Index" );
97 return QObject::tr(
"Font" );
98 case QVariant::Pixmap:
99 return QObject::tr(
"Pixmap" );
100 case QVariant::Brush:
101 return QObject::tr(
"Brush" );
102 case QVariant::Color:
103 return QObject::tr(
"Color" );
104 case QVariant::Palette:
105 return QObject::tr(
"Palette" );
106 case QVariant::Image:
107 return QObject::tr(
"Image" );
108 case QVariant::Polygon:
109 case QVariant::PolygonF:
110 return QObject::tr(
"Polygon" );
111 case QVariant::Region:
112 return QObject::tr(
"Region" );
113 case QVariant::Bitmap:
114 return QObject::tr(
"Bitmap" );
115 case QVariant::Cursor:
116 return QObject::tr(
"Cursor" );
117 case QVariant::KeySequence:
118 return QObject::tr(
"Key Sequence" );
120 return QObject::tr(
"Pen" );
121 case QVariant::TextLength:
122 return QObject::tr(
"Text Length" );
123 case QVariant::TextFormat:
124 return QObject::tr(
"Text Format" );
125 case QVariant::Matrix4x4:
126 return QObject::tr(
"Matrix" );
127 case QVariant::Transform:
128 return QObject::tr(
"Transform" );
129 case QVariant::Vector2D:
130 case QVariant::Vector3D:
131 case QVariant::Vector4D:
132 return QObject::tr(
"Vector" );
133 case QVariant::Quaternion:
134 return QObject::tr(
"Quaternion" );
136 return QObject::tr(
"Icon" );
137 case QVariant::SizePolicy:
138 return QObject::tr(
"Size Policy" );
static QString typeToDisplayString(QVariant::Type type, QVariant::Type subType=QVariant::Type::Invalid)
Returns a user-friendly translated string representing a QVariant type.