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 :

Qt Code:
  1. private :
  2. QDomElement childs;
To copy to clipboard, switch view to plain text mode 
in the cpp file :

Qt Code:
  1. Write_XML::Write_XML(QString xmlfile)
  2. {
  3. QFile file(xmlfile);
  4. childs = doc.createElement(xmlfile);
  5. doc.appendChild(childs);
  6. if (!file.open(QIODevice::WriteOnly))
  7. return;
  8. out=new QTextStream(&file);
  9. }
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