Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.0
-
None
-
8b2fdaf81ed4c52a75fe3a160c20f76a4eaf1d2b
Description
There is a sample code for "T QVariant::value()" function as follow.
QVariant v;
MyCustomStruct c;
if (v.canConvert<MyCustomStruct>())
c = v.value<MyCustomStruct>(v);
The last line above should be "c = v.value<MyCustomStruct>();"