Is there a way to display XML in Qt ?
Searched QTextBrowser, but not able to find anything related.
Need to display XML as it appears in Internet explorer. Simple tree structure can be created.
Nebody know a way how to do it ??
Is there a way to display XML in Qt ?
Searched QTextBrowser, but not able to find anything related.
Need to display XML as it appears in Internet explorer. Simple tree structure can be created.
Nebody know a way how to do it ??
If you mean:
Qt provides means to parse xml files. You can use these facilities to create an own tree from that using QTreeView.
read this: http://doc.trolltech.com/4.3/qtxml.html#details
Ya had seen it.
But what i wanted actually is a display like the XML in IE . with colored attributes etc.
Is there any compoonent or class in Qt ??
I'm afraid there's nothing readily available in Qt for that. Take a look at http://wiki.qtcentre.org/index.php?title=XmlHighlighter (just be aware that it's buggy).
J-P Nurmi
thanx for the same...
i used a work around... used a IE component in QAxWidget![]()
Surely this standard Trolltech example that ships with Qt is what you want.
http://doc.trolltech.com/4.3/xml-saxbookmarks.html
It's not identical to the IE styling but it would get you 90% of the way there.
Bookmarks