Hello,
Yes it is possible : please read this chapter of the QxOrm manual :
http://www.qxorm.com/qxorm_en/manual.html#manual_460The more important part is : you have to specialize
QxConvert_ToVariant and
QxConvert_FromVariant template, like this (just replace ExtObject3D by QVector or QVector3D) :
- Code: Select all
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