Is there any way to support QVector and QVector3D?
for example:
t.data(&MyClass::VectorData,"pixel_spacing");
The type of the VectorData is QVector3D or QVector
namespace qx {
namespace cvt {
namespace detail {
template <> struct QxConvert_ToVariant< ExtObject3D > {
static inline QVariant toVariant(const ExtObject3D & t, const QString & format, int index)
{ /* Here I convert from ExtObject3D to QVariant */ } };
template <> struct QxConvert_FromVariant< ExtObject3D > {
static inline qx_bool fromVariant(const QVariant & v, ExtObject3D & t, const QString & format, int index)
{ /* Here I convert from QVariant to ExtObject3D */; return qx_bool(true); } };
} // namespace detail
} // namespace cvt
} // namespace qx
Users browsing this forum: No registered users and 10 guests