0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-03-28 05:03:45 +03:00

"QMetaProperty::read: Unable to handle unregistered datatype" has been fixed

This commit is contained in:
Arin Alexander 2016-05-27 02:01:12 +04:00
parent aa6a61cc47
commit de6ce6741f

View File

@ -137,7 +137,7 @@ void XMLWriter::saveProperty(QString name, QObject* item, QDomElement *node)
else
try {
creator=XMLAbstractSerializatorFactory::instance().objectCreator(
item->property(name.toLatin1()).typeName()
item->metaObject()->property(item->metaObject()->indexOfProperty(name.toLatin1())).typeName()
);
} catch (LimeReport::ReportError &exception){
qDebug()<<"class name ="<<item->metaObject()->className()