Hello Fellas ,
I'm having a problem with a small Xml parser and writer that i'm coding !
Well , i wrote a class Write_XML in the header i have :
private :
private :
QDomDocument doc;
QDomElement childs;
QTextStream out;
To copy to clipboard, switch view to plain text mode
in the cpp file :
Write_XML
::Write_XML(QString xmlfile
){
childs = doc.createElement(xmlfile);
doc.appendChild(childs);
return;
}
Write_XML::Write_XML(QString xmlfile)
{
QFile file(xmlfile);
childs = doc.createElement(xmlfile);
doc.appendChild(childs);
if (!file.open(QIODevice::WriteOnly))
return;
out=new QTextStream(&file);
}
To copy to clipboard, switch view to plain text mode
But I'm having this disturbing Error : field 'out' has incomplete type.
How can I solve this problem ?
Thanks
Bookmarks