Hi!
I need to export a QStandardModelItem to an XML-File.
//put stuff inside
//then walk through the childs using
exportChild(item,out) ;
//writing the XMLFile using recursion of exportChild()
exportChild()
{
if (item->hasChildren())
...
exportChild(item,out)
}
QStandardItemModel *mod;
//put stuff inside
//then walk through the childs using
QStandardItem * item = mod->invisibleRootItem();
exportChild(item,out) ;
//writing the XMLFile using recursion of exportChild()
exportChild()
{
if (item->hasChildren())
...
exportChild(item,out)
}
To copy to clipboard, switch view to plain text mode
Is this the best way to do that or is there an easier or better solution?
Kind regards,
HomeR
Bookmarks