Unsolved QT with XML
-
How can I parse XML file and create a UI based on parsed XMl ?
-
Reading XML can be achieved using the QXmlReader class.
For your second question, it's hard to guess waht you want to achieve... Give us more details if you want useful answers. -
@JohanSolo
Thanks for your response.
Is there any example code for QXmlReader ?
What is the differents between Qxmlreader and QXmlSimpleReader classes ? -
@BinuJanardhanan said in QT with XML:
Is there any example code for QXmlReader ?
What is the differents between Qxmlreader and QXmlSimpleReader classes ?There are several IIRC. If you look at the doc, it:
- gives you examples;
- tells you that QXmlSimpleReader is SAX API, and QXmlReader is StAX.
-
@BinuJanardhanan said in QT with XML:
create a UI based on parsed XMl
if you can convert or adapt your XML format to Qt's one, you can use
uic
to do this (in fact, .ui files are xml and converting them to code that creats a UI is what uic is for)If you want to stick with your own syntax the uic source code is still probably the best place to start to get inspiration