
Originally Posted by
mickey
hello is produced by calling Class.Write (see previous post). I'd like to put hello (what the write() do) in the place of 'HI'
OK, so first you must capture the output generated by Class.Write.
Something like:
QString text;
Class.Write( QTextStream( &text, IO_WriteOnly ) );
To copy to clipboard, switch view to plain text mode
should be enough.
And then:
QDomElement tag1
( doc.
createElement( "PLAIN Property" ) );
...
QDomText t1
( doc.
createTextNode( text
) );
tag1.appendChild( t1 );
QDomElement tag1( doc.createElement( "PLAIN Property" ) );
...
QDomText t1( doc.createTextNode( text ) );
tag1.appendChild( t1 );
To copy to clipboard, switch view to plain text mode
PS. AFAIK "PLAIN Property" is not a valid name of an element in XML.
Bookmarks