Solved QVariant to QVector3D
-
Hello,
is there a way to convert a QVariant to a QVector3D?Thanks!
-
Hi,
The following should work:QVector3D vec; variant.setData(QVariant::fromValue<QVector3D>(vec)); vec=variant.value<QVector3D>();
-Michael.
-
Hi,
The following should work:QVector3D vec; variant.setData(QVariant::fromValue<QVector3D>(vec)); vec=variant.value<QVector3D>();
-Michael.
-