View Full Version : "Simple DOM Model Example"
rmagro
1st July 2009, 10:44
I would like to know if it is possible to write to a text file a QTreeView such as in the "Simple DOM Model Example"
Some example?
Thx
Roby
aamer4yu
1st July 2009, 11:14
You can get simple tree view with indentation by using QDomNode::save
rmagro
1st July 2009, 11:46
thanks
is it easy possibile to save as "bold" all the element vith a text value ?
What about save to a pdf file ?
thx
aamer4yu
1st July 2009, 12:35
Not sure.. but this comes to my mind -
Render the tree in QTextDocument with syntax highlighting.
Now render the document to printer using QTextDocument::drawContents with QPrinter::PdfFormat output format set on the QPrinter .
Hope it works :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.