744
746
QQmlComponent component(&engine, testFileUrl("roleKeys.qml"));
745
747
QAbstractItemModel *model = qobject_cast<QAbstractItemModel *>(component.create());
750
752
xml = makeItemXmlAndData("name=A,age=25,sport=Football;name=B,age=35,sport=Athletics");
751
753
model->setProperty("xml",xml);
752
754
QTRY_COMPARE(model->rowCount(), 2);