#include "MOHost"
#include <QDomElement>
#include <QDomDocument>
#include <QVariant>
Initial value:=QMetaType::registerConverter<Nullable<MOHost>,
MOHost>([](
const Nullable<MOHost>&n){
return n.value();})|
QMetaType::registerConverter<QList<MOHost>,QVariantList>([](const QList<MOHost>&n){QVariantList r;for(auto v:n)r<<QVariant::fromValue(v);return r;})
Definition: srcMOHost.h:14
int class_metatypeid = qRegisterMetaType<MOHost>()+ qRegisterMetaType<QList<MOHost> >()+ qRegisterMetaType<Nullable<MOHost> >() |
|
static |